Changeset View
Changeset View
Standalone View
Standalone View
src/editors/cursoredit.h
Show All 18 Lines | |||||
19 | * Boston, MA 02110-1301, USA. | 19 | * Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef KPROPERTY_CURSOREDIT_H | 22 | #ifndef KPROPERTY_CURSOREDIT_H | ||
23 | #define KPROPERTY_CURSOREDIT_H | 23 | #define KPROPERTY_CURSOREDIT_H | ||
24 | 24 | | |||
25 | #include "combobox.h" | 25 | #include "combobox.h" | ||
26 | 26 | | |||
27 | class KPROPERTY_EXPORT KPropertyCursorEditor : public KPropertyComboBoxEditor | 27 | class KPROPERTYWIDGETS_EXPORT KPropertyCursorEditor : public KPropertyComboBoxEditor | ||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | Q_PROPERTY(QCursor value READ cursorValue WRITE setCursorValue USER true) | 30 | Q_PROPERTY(QCursor value READ cursorValue WRITE setCursorValue USER true) | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | explicit KPropertyCursorEditor(QWidget *parent = 0); | 33 | explicit KPropertyCursorEditor(QWidget *parent = 0); | ||
34 | virtual ~KPropertyCursorEditor(); | 34 | virtual ~KPropertyCursorEditor(); | ||
35 | 35 | | |||
36 | virtual QCursor cursorValue() const; | 36 | virtual QCursor cursorValue() const; | ||
37 | virtual void setCursorValue(const QCursor &value); | 37 | virtual void setCursorValue(const QCursor &value); | ||
38 | }; | 38 | }; | ||
39 | 39 | | |||
40 | class KPROPERTY_EXPORT KPropertyCursorDelegate : public KPropertyEditorCreatorInterface, | 40 | class KPROPERTYWIDGETS_EXPORT KPropertyCursorDelegate : public KPropertyEditorCreatorInterface, | ||
41 | public KPropertyValuePainterInterface | 41 | public KPropertyValuePainterInterface | ||
42 | { | 42 | { | ||
43 | public: | 43 | public: | ||
44 | KPropertyCursorDelegate(); | 44 | KPropertyCursorDelegate(); | ||
45 | 45 | | |||
46 | virtual QWidget * createEditor( int type, QWidget *parent, | 46 | virtual QWidget * createEditor( int type, QWidget *parent, | ||
47 | const QStyleOptionViewItem & option, const QModelIndex & index ) const; | 47 | const QStyleOptionViewItem & option, const QModelIndex & index ) const; | ||
48 | 48 | | |||
49 | virtual void paint( QPainter * painter, | 49 | virtual void paint( QPainter * painter, | ||
50 | const QStyleOptionViewItem & option, const QModelIndex & index ) const; | 50 | const QStyleOptionViewItem & option, const QModelIndex & index ) const; | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | #endif | 53 | #endif |