Plasma
scrollbar.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_SCROLLBAR_H
00022 #define PLASMA_SCROLLBAR_H
00023
00024 #include <QtGui/QScrollBar>
00025 #include <QtGui/QGraphicsProxyWidget>
00026
00027 #include <plasma/plasma_export.h>
00028
00029 namespace Plasma
00030 {
00031
00032 class ScrollBarPrivate;
00033
00039 class PLASMA_EXPORT ScrollBar : public QGraphicsProxyWidget
00040 {
00041 Q_OBJECT
00042
00043 Q_PROPERTY(int singleStep READ singleStep WRITE setSingleStep)
00044 Q_PROPERTY(int pageStep READ pageStep WRITE setPageStep)
00045 Q_PROPERTY(int value READ value WRITE setValue)
00046 Q_PROPERTY(int minimum READ minimum)
00047 Q_PROPERTY(int maximum READ maximum)
00048 Q_PROPERTY(QString stylesheet READ styleSheet WRITE setStyleSheet)
00049 Q_PROPERTY(QScrollBar *nativeWidget READ nativeWidget)
00050
00051 public:
00055 explicit ScrollBar(QGraphicsWidget *parent);
00056
00057 ~ScrollBar();
00058
00064 void setRange(int min, int max);
00065
00071 void setSingleStep(int val);
00072
00076 int singleStep();
00077
00082 void setPageStep(int val);
00083
00087 int pageStep();
00088
00092 int value() const;
00093
00097 int minimum() const;
00098
00102 int maximum() const;
00103
00109 void setStyleSheet(const QString &stylesheet);
00110
00114 QString styleSheet();
00115
00119 QScrollBar *nativeWidget() const;
00120
00121 public Q_SLOTS:
00126 void setValue(int val);
00127
00131 void setOrientation(Qt::Orientation orientation);
00132
00133 Q_SIGNALS:
00137 void valueChanged(int value);
00138
00139 private:
00140 ScrollBarPrivate * const d;
00141 };
00142
00143 }
00144
00145 #endif