diff options
author | jerous <jerous@gmail.com> | 2008-05-29 17:50:17 +0200 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-05-29 17:50:17 +0200 |
commit | 76c937d486e9a4dc755cfd5e1d6bf80372663009 (patch) | |
tree | e9badb7d134da6ffe4962d36a91227f334833050 /winMain.py | |
parent | d1eb448c18812e62e7409e69921068d1ebbc0c43 (diff) |
ellipsis
Diffstat (limited to 'winMain.py')
-rw-r--r-- | winMain.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -358,7 +358,12 @@ class SongList(QtGui.QWidget): x=2+xOffset for hdr in self.headers: if hdr[2]: - p.drawText(x, y, hdr[1]-margin, lineHeight, QtCore.Qt.AlignLeft, str(song.getTag(hdr[0]))) + rect=p.boundingRect(x, y, hdr[1]-margin, lineHeight, QtCore.Qt.AlignLeft, str(song.getTag(hdr[0]))) + text=str(song.getTag(hdr[0])) + p.drawText(x, y, hdr[1]-margin, lineHeight, QtCore.Qt.AlignLeft, text) + if rect.width()>hdr[1]-margin: + p.fillRect(x+hdr[1]-15,y,15,lineHeight, QtGui.QBrush(clr)) + p.drawText(x+hdr[1]-15,y,15, lineHeight, QtCore.Qt.AlignLeft, "...") x+=hdr[1] y+=lineHeight |