Bug#764761: pyqt4-dev-tools: fontMetrics.elidedText performs poorly on '\t' in QLabel.

2014-10-18 Thread Dmitry Shachnev
On Fri, 17 Oct 2014 21:48:45 +0200, Enno wrote:
 Segfault?  Well maybe I should add the full code:

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764761#15

 The width of the tab is 80px according to Qt documentation, but this is
 not consistent with my experience, in my configuration in this QLabel it
 seems to be about 56px wide.

I think 80px is *maximum* tab width, and real tab width will be
(− width of previous text) mod (80px).

Anyway, if it is less than the documented value, I think it is not
a bug.

Anyway, this should not stop you from discussing it with upstream :)

--
Dmitry Shachnev

signature.asc
Description: OpenPGP digital signature


Bug#764761: pyqt4-dev-tools: fontMetrics.elidedText performs poorly on '\t' in QLabel.

2014-10-17 Thread Dmitry Shachnev
On Fri, 17 Oct 2014 11:57:16 +0400, Dmitry Shachnev wrote:
 Second, I get a segmentation fault trying to reproduce this issue
 (with both Qt 4 and Qt 5). Reported at [1].

Please ignore that part, upstream pointed that it was my fault
(In both Python and C++, one needs to keep a reference to the
application object).

Anyway, my investigations are still valid.

--
Dmitry Shachnev

signature.asc
Description: OpenPGP digital signature


Bug#764761: pyqt4-dev-tools: fontMetrics.elidedText performs poorly on '\t' in QLabel.

2014-10-10 Thread Enno
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 'blahmoohw'+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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org