From 1fdc150116cad39aae5c5da407c3312b47a59e3a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 17 Dec 2021 07:06:30 -0500 Subject: New upstream version 3.3.3+dfsg1. --- SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp') diff --git a/SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp b/SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp index 3268960..7b17ffe 100644 --- a/SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/completer/completeritemdelegate.cpp @@ -124,13 +124,13 @@ void CompleterItemDelegate::paintPrefix(QPainter* painter, const QFontMetrics& m QString value = text + "."; painter->drawText(QPoint(x, y), value); - x += metrics.width(value); + x += metrics.horizontalAdvance(value); } void CompleterItemDelegate::paintValue(QPainter* painter, const QFontMetrics& metrics, int& x, int y, const QString& text) const { painter->drawText(QPoint(x, y), text); - x += metrics.width(text); + x += metrics.horizontalAdvance(text); } void CompleterItemDelegate::paintLabel(QPainter* painter, int& x, int y, const QString& text, bool emptyValue) const -- cgit v1.2.3