Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.h
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | class ItemDelegate : public QItemDelegate { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
ItemDelegate(QObject *parent) : QItemDelegate(parent) {} | ItemDelegate(QObject *parent) : QItemDelegate(parent) {} | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void keyEscapePressed(); | void keyEscapePressed(); | ||||
private: | private: | ||||
bool eventFilter(QObject *object, QEvent *event); | bool eventFilter(QObject *object, QEvent *event) override; | ||||
}; | }; | ||||
/** | /** | ||||
* Returns the distance in pixels appropriate for drawing a subsequent character | * Returns the distance in pixels appropriate for drawing a subsequent character | ||||
* after text. | * after text. | ||||
* | * | ||||
* In Qt 5.12 and before the QFontMetrics::width() is used and it is deprecated | * In Qt 5.12 and before the QFontMetrics::width() is used and it is deprecated | ||||
* since Qt 13.0. In Qt 5.11 the QFontMetrics::horizontalAdvance() was | * since Qt 13.0. In Qt 5.11 the QFontMetrics::horizontalAdvance() was | ||||
Show All 14 Lines |