52 #pragma GCC system_header 54 #ifndef QTPROPERTYBROWSERUTILS_H 55 #define QTPROPERTYBROWSERUTILS_H 57 #include <QtCore/QMap> 58 #include <QtGui/QIcon> 59 #include <QtGui/QWidget> 60 #include <QtCore/QStringList> 62 #if QT_VERSION >= 0x040400 84 void appendCursor(Qt::CursorShape shape,
const QString &name,
86 QStringList m_cursorNames;
87 QMap<int, QIcon> m_cursorIcons;
88 QMap<int, Qt::CursorShape> m_valueToCursorShape;
89 QMap<Qt::CursorShape, int> m_cursorShapeToValue;
95 static QPixmap brushValuePixmap(
const QBrush &b);
96 static QIcon brushValueIcon(
const QBrush &b);
97 static QString colorValueText(
const QColor &c);
98 static QPixmap fontValuePixmap(
const QFont &f);
99 static QIcon fontValueIcon(
const QFont &f);
100 static QString fontValueText(
const QFont &f);
110 void setTextVisible(
bool textVisible);
112 Qt::CheckState checkState()
const;
113 void setCheckState(Qt::CheckState state);
115 bool isChecked()
const;
116 void setChecked(
bool c);
118 bool blockCheckBoxSignals(
bool block);
121 void toggled(
bool b);
124 void mousePressEvent(QMouseEvent * event);
125 void paintEvent(QPaintEvent *e);
128 QCheckBox *m_checkBox;
139 QKeySequence keySequence()
const;
140 bool eventFilter(QObject *o, QEvent *e);
142 void setKeySequence(
const QKeySequence &sequence);
144 void keySequenceChanged(
const QKeySequence &sequence);
146 void focusInEvent(QFocusEvent *e);
147 void focusOutEvent(QFocusEvent *e);
148 void keyPressEvent(QKeyEvent *e);
149 void keyReleaseEvent(QKeyEvent *e);
150 void paintEvent(QPaintEvent *e);
151 bool event(QEvent *e);
153 void slotClearShortcut();
155 void handleKeyEvent(QKeyEvent *e);
156 int translateModifiers(Qt::KeyboardModifiers state,
157 const QString &text)
const;
160 QKeySequence m_keySequence;
161 QLineEdit *m_lineEdit;
164 #if QT_VERSION >= 0x040400 bool textVisible() const
Definition: qtpropertybrowserutils_p.h:109
QString cursorToShapeName(const QCursor &cursor) const
QIcon cursorToShapeIcon(const QCursor &cursor) const
Definition: qtpropertybrowserutils_p.h:70
Definition: qtpropertybrowserutils_p.h:103
QStringList cursorShapeNames() const
QMap< int, QIcon > cursorShapeIcons() const
QCursor valueToCursor(int value) const
int cursorToValue(const QCursor &cursor) const
Definition: qtpropertybrowserutils_p.h:92
Definition: qtpropertybrowserutils_p.h:132