OSDN Git Service

Fixed vertical alignment of line numbers in search results on Mac
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Thu, 27 May 2010 11:49:36 +0000 (13:49 +0200)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Thu, 27 May 2010 11:49:36 +0000 (13:49 +0200)
commit3bc20dbb60775e1e6a37b358f531ce83ec9cd2fd
tree2db2ab3a339d9b90bd9bf12d3bebfbbdaa91249e
parenta49bbb4d158a64bf516a29784be55866a5b7a8ef
Fixed vertical alignment of line numbers in search results on Mac

Due to different text positioning logic between the QItemDelegate and
the way SearchResultTreeItemDelegate drew the line numbers, the line
numbers did not align properly to the line of text next to it.

This was fixed by relying on QItemDelegate::drawDisplay for drawing the
line numbers, so that the same positioning logic is used.

This exposed a small right-alignment bug in QTextLayout, for which a fix
is coming to Qt.

Done-with: Erik Verbruggen
src/plugins/find/searchresulttreeitemdelegate.cpp