Give completion items a bit more space
This commit is contained in:
parent
f59f8cac6c
commit
27046b5186
1
TODO
1
TODO
@ -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
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user