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);
97 static QPixmap brushValuePixmap(
const QBrush& b);
98 static QIcon brushValueIcon(
const QBrush& b);
99 static QString colorValueText(
const QColor& c);
100 static QPixmap fontValuePixmap(
const QFont& f);
101 static QIcon fontValueIcon(
const QFont& f);
102 static QString fontValueText(
const QFont& f);
111 return m_textVisible;
113 void setTextVisible(
bool textVisible);
115 Qt::CheckState checkState()
const;
116 void setCheckState(Qt::CheckState state);
118 bool isChecked()
const;
119 void setChecked(
bool c);
121 bool blockCheckBoxSignals(
bool block);
127 void mousePressEvent(QMouseEvent* event)
override;
128 void paintEvent(QPaintEvent*)
override;
132 bool m_textVisible{
true};
140 QKeySequence keySequence()
const;
141 bool eventFilter(QObject* o, QEvent* e)
override;
143 void setKeySequence(
const QKeySequence& sequence);
145 void keySequenceChanged(
const QKeySequence& sequence);
147 void focusInEvent(QFocusEvent* e)
override;
148 void focusOutEvent(QFocusEvent* e)
override;
149 void keyPressEvent(QKeyEvent* e)
override;
150 void keyReleaseEvent(QKeyEvent* e)
override;
151 void paintEvent(QPaintEvent*)
override;
152 bool event(QEvent* e)
override;
154 void slotClearShortcut();
156 void handleKeyEvent(QKeyEvent* e);
157 int translateModifiers(Qt::KeyboardModifiers state,
const QString& text)
const;
164 #if QT_VERSION >= 0x040400 QMap< int, QIcon > cursorShapeIcons() const
Definition: qtpropertybrowserutils.cpp:92
QCheckBox * m_checkBox
Definition: qtpropertybrowserutils_p.h:131
QKeySequence m_keySequence
Definition: qtpropertybrowserutils_p.h:160
QMap< int, Qt::CursorShape > m_valueToCursorShape
Definition: qtpropertybrowserutils_p.h:91
QMap< int, QIcon > m_cursorIcons
Definition: qtpropertybrowserutils_p.h:90
QLineEdit * m_lineEdit
Definition: qtpropertybrowserutils_p.h:161
QString cursorToShapeName(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:96
QStringList m_cursorNames
Definition: qtpropertybrowserutils_p.h:89
int cursorToValue(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:109
The description of this class will come soon !
Definition: qtpropertybrowserutils_p.h:75
Definition: qtpropertybrowserutils_p.h:105
bool textVisible() const
Definition: qtpropertybrowserutils_p.h:110
QMap< Qt::CursorShape, int > m_cursorShapeToValue
Definition: qtpropertybrowserutils_p.h:92
void appendCursor(Qt::CursorShape shape, const QString &name, const QIcon &icon)
Definition: qtpropertybrowserutils.cpp:77
QCursor valueToCursor(int value) const
Definition: qtpropertybrowserutils.cpp:120
QStringList cursorShapeNames() const
Definition: qtpropertybrowserutils.cpp:88
Definition: qtpropertybrowserutils_p.h:95
Definition: qtpropertybrowserutils_p.h:135
QtCursorDatabase()
Definition: qtpropertybrowserutils.cpp:55
QIcon cursorToShapeIcon(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:104