52 #ifndef QTPROPERTYBROWSERUTILS_H
53 #define QTPROPERTYBROWSERUTILS_H
58 #include <QStringList>
60 #if QT_VERSION >= 0x040400
88 void appendCursor(Qt::CursorShape shape,
const QString& name,
const QIcon& icon);
89 QStringList m_cursorNames;
90 QMap<int, QIcon> m_cursorIcons;
91 QMap<int, Qt::CursorShape> m_valueToCursorShape;
92 QMap<Qt::CursorShape, int> m_cursorShapeToValue;
111 return m_textVisible;
131 QCheckBox* m_checkBox;
132 bool m_textVisible{
true};
152 bool event(QEvent* e)
override;
154 void slotClearShortcut();
156 void handleKeyEvent(QKeyEvent* e);
157 int translateModifiers(Qt::KeyboardModifiers state,
const QString& text)
const;
160 QKeySequence m_keySequence;
161 QLineEdit* m_lineEdit;
164 #if QT_VERSION >= 0x040400
Definition: qtpropertybrowserutils_p.h:105
bool textVisible() const
Definition: qtpropertybrowserutils_p.h:110
void mousePressEvent(QMouseEvent *event) override
Definition: qtpropertybrowserutils.cpp:240
Qt::CheckState checkState() const
Definition: qtpropertybrowserutils.cpp:216
void setTextVisible(bool textVisible)
Definition: qtpropertybrowserutils.cpp:202
bool blockCheckBoxSignals(bool block)
Definition: qtpropertybrowserutils.cpp:236
bool isChecked() const
Definition: qtpropertybrowserutils.cpp:224
void setCheckState(Qt::CheckState state)
Definition: qtpropertybrowserutils.cpp:220
void setChecked(bool c)
Definition: qtpropertybrowserutils.cpp:228
void paintEvent(QPaintEvent *) override
Definition: qtpropertybrowserutils.cpp:250
QtBoolEdit(QWidget *parent=nullptr)
Definition: qtpropertybrowserutils.cpp:185
The description of this class will come soon !
Definition: qtpropertybrowserutils_p.h:75
QCursor valueToCursor(int value) const
Definition: qtpropertybrowserutils.cpp:120
QStringList cursorShapeNames() const
Definition: qtpropertybrowserutils.cpp:88
int cursorToValue(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:109
QString cursorToShapeName(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:96
QtCursorDatabase()
Definition: qtpropertybrowserutils.cpp:55
QIcon cursorToShapeIcon(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:104
QMap< int, QIcon > cursorShapeIcons() const
Definition: qtpropertybrowserutils.cpp:92
Definition: qtpropertybrowserutils_p.h:135
void paintEvent(QPaintEvent *) override
Definition: qtpropertybrowserutils.cpp:409
void keySequenceChanged(const QKeySequence &sequence)
void setKeySequence(const QKeySequence &sequence)
Definition: qtpropertybrowserutils.cpp:358
bool event(QEvent *e) override
Definition: qtpropertybrowserutils.cpp:416
void focusOutEvent(QFocusEvent *e) override
Definition: qtpropertybrowserutils.cpp:394
void keyReleaseEvent(QKeyEvent *e) override
Definition: qtpropertybrowserutils.cpp:405
void focusInEvent(QFocusEvent *e) override
Definition: qtpropertybrowserutils.cpp:388
void keyPressEvent(QKeyEvent *e) override
Definition: qtpropertybrowserutils.cpp:400
QtKeySequenceEdit(QWidget *parent=nullptr)
Definition: qtpropertybrowserutils.cpp:259
QKeySequence keySequence() const
Definition: qtpropertybrowserutils.cpp:367
bool eventFilter(QObject *o, QEvent *e) override
Definition: qtpropertybrowserutils.cpp:271
Definition: qtpropertybrowserutils_p.h:95
static QPixmap brushValuePixmap(const QBrush &b)
Definition: qtpropertybrowserutils.cpp:128
static QPixmap fontValuePixmap(const QFont &f)
Definition: qtpropertybrowserutils.cpp:159
static QIcon brushValueIcon(const QBrush &b)
Definition: qtpropertybrowserutils.cpp:147
static QString colorValueText(const QColor &c)
Definition: qtpropertybrowserutils.cpp:151
static QIcon fontValueIcon(const QFont &f)
Definition: qtpropertybrowserutils.cpp:174
static QString fontValueText(const QFont &f)
Definition: qtpropertybrowserutils.cpp:178