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);
128 void paintEvent(QPaintEvent *);
140 QKeySequence keySequence()
const;
141 bool eventFilter(QObject *o, QEvent *e);
143 void setKeySequence(
const QKeySequence &sequence);
145 void keySequenceChanged(
const QKeySequence &sequence);
147 void focusInEvent(QFocusEvent *e);
148 void focusOutEvent(QFocusEvent *e);
149 void keyPressEvent(QKeyEvent *e);
150 void keyReleaseEvent(QKeyEvent *e);
151 void paintEvent(QPaintEvent *);
152 bool event(QEvent *e);
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:91
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:95
QStringList m_cursorNames
Definition: qtpropertybrowserutils_p.h:89
int cursorToValue(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:107
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:117
QStringList cursorShapeNames() const
Definition: qtpropertybrowserutils.cpp:87
Definition: qtpropertybrowserutils_p.h:95
Definition: qtpropertybrowserutils_p.h:135
QtCursorDatabase()
Definition: qtpropertybrowserutils.cpp:55
QIcon cursorToShapeIcon(const QCursor &cursor) const
Definition: qtpropertybrowserutils.cpp:102
bool m_textVisible
Definition: qtpropertybrowserutils_p.h:132
int m_num
Definition: qtpropertybrowserutils_p.h:159