Plasma
spinbox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PLASMA_SPINBOX_H
00022 #define PLASMA_SPINBOX_H
00023
00024 #include <QtGui/QGraphicsProxyWidget>
00025
00026 #include <plasma/plasma_export.h>
00027
00028 class KIntSpinBox;
00029
00030 namespace Plasma
00031 {
00032
00033 class SpinBoxPrivate;
00034
00040 class PLASMA_EXPORT SpinBox : public QGraphicsProxyWidget
00041 {
00042 Q_OBJECT
00043
00044 Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
00045 Q_PROPERTY(int maximum READ maximum WRITE setMinimum)
00046 Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
00047 Q_PROPERTY(int value READ value WRITE setValue)
00048 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
00049 Q_PROPERTY(KIntSpinBox *nativeWidget READ nativeWidget)
00050
00051 public:
00052 explicit SpinBox(QGraphicsWidget *parent = 0);
00053 ~SpinBox();
00054
00058 int maximum() const;
00059
00063 int minimum() const;
00064
00068 int value() const;
00069
00075 void setStyleSheet(const QString &stylesheet);
00076
00080 QString styleSheet();
00081
00085 KIntSpinBox *nativeWidget() const;
00086
00087 public Q_SLOTS:
00091 void setMaximum(int maximum);
00092
00096 void setMinimum(int minimum);
00097
00101 void setRange(int minimum, int maximum);
00102
00109 void setValue(int value);
00110
00111 Q_SIGNALS:
00119 void sliderMoved(int value);
00120
00125 void valueChanged(int value);
00126
00131 void editingFinished();
00132
00133 private:
00134 Q_PRIVATE_SLOT(d, void setPalette())
00135
00136 SpinBoxPrivate * const d;
00137 };
00138
00139 }
00140
00141 #endif // multiple inclusion guard