Your message dated Fri, 17 Oct 2014 11:57:16 +0400
with message-id <[email protected]>
and subject line Re: pyqt4-dev-tools: fontMetrics.elidedText performs poorly on 
'\t' in QLabel.
has caused the Debian Bug report #764761,
regarding pyqt4-dev-tools: fontMetrics.elidedText performs poorly on '\t' in 
QLabel.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
764761: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764761
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pyqt4-dev-tools
Version: 4.10.4+dfsg-2
Severity: minor

Dear Maintainer,

Put tabbed text into a QLabel and elide it.
[self is QLabel, txt 'blah\tmooh\twoof']

fm = self.fontMetrics()
self.setText(fm.elidedText(txt, 1, self.width())

text displayed 'blah', even though 'blah    mooh    w'+u'\u2026' would have had 
enough space.

I suppose it's an upstream problem.

-- System Information:
Debian Release: 7.1
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.57-mash
Locale: LANG=de_AT@euro, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages pyqt4-dev-tools depends on:
ii  libc6       2.19-11
ii  libgcc1     1:4.8.1-2
ii  libqt4-xml  4:4.8.6+dfsg-1
ii  libqtcore4  4:4.8.6+dfsg-1
ii  libstdc++6  4.9.1-15
ii  python      2.7.5-5
ii  python-qt4  4.10.4+dfsg-2

pyqt4-dev-tools recommends no packages.

pyqt4-dev-tools suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Enno,

On Fri, 10 Oct 2014 23:30:53 +0200, Enno wrote:
> Put tabbed text into a QLabel and elide it.
> [self is QLabel, txt 'blah\tmooh\twoof']
>
> fm = self.fontMetrics()
> self.setText(fm.elidedText(txt, 1, self.width())
>
> text displayed 'blah', even though 'blah    mooh    w'+u'\u2026'
> would have had enough space.

First, a tabulation sign is not the same as four spaces, it has a
different semantics and non-constant width.

Second, I get a segmentation fault trying to reproduce this issue
(with both Qt 4 and Qt 5). Reported at [1]. Anyway, I managed to
figure out that the width of a tab character is 80 px, which is 8
times larger than width of 'w' letter. That does not look very big
to me.

In any case, this bug has nothing to do with PyQt4 development
tools, so I am closing it. Please file a bug on Qt bug tracker
(bugreports.qt-project.org) if you still think it is an issue.

[1]: https://bugreports.qt-project.org/browse/QTBUG-42011
[2]: http://qt-project.org/doc/qt-5/qfontmetrics.html#elidedText

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to