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;
128 QCheckBox *m_checkBox;
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
void keyPressEvent(QKeyEvent *e)
bool textVisible() const
Definition: qtpropertybrowserutils_p.h:109
void setKeySequence(const QKeySequence &sequence)
QString cursorToShapeName(const QCursor &cursor) const
void paintEvent(QPaintEvent *e)
void keySequenceChanged(const QKeySequence &sequence)
QKeySequence keySequence() const
static QIcon fontValueIcon(const QFont &f)
void keyReleaseEvent(QKeyEvent *e)
bool blockCheckBoxSignals(bool block)
void setTextVisible(bool textVisible)
QIcon cursorToShapeIcon(const QCursor &cursor) const
QtKeySequenceEdit(QWidget *parent=0)
void focusOutEvent(QFocusEvent *e)
Definition: qtpropertybrowserutils_p.h:70
void mousePressEvent(QMouseEvent *event)
Definition: qtpropertybrowserutils_p.h:103
QtBoolEdit(QWidget *parent=0)
QStringList cursorShapeNames() const
bool eventFilter(QObject *o, QEvent *e)
static QString fontValueText(const QFont &f)
QMap< int, QIcon > cursorShapeIcons() const
void paintEvent(QPaintEvent *e)
void focusInEvent(QFocusEvent *e)
static QPixmap fontValuePixmap(const QFont &f)
static QIcon brushValueIcon(const QBrush &b)
Qt::CheckState checkState() const
void setCheckState(Qt::CheckState state)
QCursor valueToCursor(int value) const
static QString colorValueText(const QColor &c)
int cursorToValue(const QCursor &cursor) const
Definition: qtpropertybrowserutils_p.h:92
Definition: qtpropertybrowserutils_p.h:132
static QPixmap brushValuePixmap(const QBrush &b)