Give completion items a bit more space

This commit is contained in:
Florian Bruhin 2014-04-13 22:35:55 +02:00
parent f59f8cac6c
commit 27046b5186
2 changed files with 1 additions and 2 deletions

1
TODO
View File

@ -7,7 +7,6 @@ New config TODO
Bugs Bugs
==== ====
Underlines aren't displayed correctly in completion widget
All kind of FIXMEs All kind of FIXMEs
Weird font rendering Weird font rendering
https://bugreports.qt-project.org/browse/QTBUG-20973 https://bugreports.qt-project.org/browse/QTBUG-20973

View File

@ -474,7 +474,7 @@ class _CompletionItemDelegate(QStyledItemDelegate):
docsize = self._doc.size().toSize() docsize = self._doc.size().toSize()
size = self._style.sizeFromContents(QStyle.CT_ItemViewItem, self._opt, size = self._style.sizeFromContents(QStyle.CT_ItemViewItem, self._opt,
docsize, self._opt.widget) docsize, self._opt.widget)
return size + QSize(10, 1) return size + QSize(10, 3)
def paint(self, painter, option, index): def paint(self, painter, option, index):
"""Override the QStyledItemDelegate paint function. """Override the QStyledItemDelegate paint function.