Plasma
groupbox.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 #ifndef PLASMA_GROUPBOX_H
00021 #define PLASMA_GROUPBOX_H
00022
00023 #include <QtGui/QGraphicsProxyWidget>
00024
00025 class QGroupBox;
00026
00027 #include <plasma/plasma_export.h>
00028
00029 namespace Plasma
00030 {
00031
00032 class GroupBoxPrivate;
00033
00039 class PLASMA_EXPORT GroupBox : public QGraphicsProxyWidget
00040 {
00041 Q_OBJECT
00042
00043 Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
00044 Q_PROPERTY(QString text READ text WRITE setText)
00045 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
00046 Q_PROPERTY(QGroupBox *nativeWidget READ nativeWidget)
00047
00048 public:
00049 explicit GroupBox(QGraphicsWidget *parent = 0);
00050 ~GroupBox();
00051
00057 void setText(const QString &text);
00058
00062 QString text() const;
00063
00069 void setStyleSheet(const QString &stylesheet);
00070
00074 QString styleSheet();
00075
00079 QGroupBox *nativeWidget() const;
00080
00081 Q_SIGNALS:
00082
00083 protected:
00084 void resizeEvent(QGraphicsSceneResizeEvent *event);
00085
00086 private:
00087 GroupBoxPrivate * const d;
00088 };
00089
00090 }
00091
00092 #endif // multiple inclusion guard