00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef QSEPARATORADAPTER_H
00010 #define QSEPARATORADAPTER_H
00011
00012 #include "JavaQxQSwing.h"
00013
00014
00015
00016
00017
00024 class JAVAQX_EXPORT QSeparatorAdapter : public QWidget
00025 {
00026 public:
00027 QSeparatorAdapter();
00028 public:
00029 Qt::Orientation orientation() const;
00030 void setOrientation(Qt::Orientation orientation);
00031 QString text() const;
00032 void setText(const QString text);
00033 void setUseStylePalette(bool useStylePalette);
00034 public:
00035 virtual QSize sizeHint() const;
00036 protected:
00037 virtual void changeEvent(QEvent *e);
00038 virtual void paintEvent(QPaintEvent *e);
00039 protected:
00040 void updateLabel();
00041 private:
00042 Qt::Orientation m_orientation;
00043 QString m_text;
00044 bool m_useStylePalette;
00045 public:
00046 static const int DEFAULT_SEPARATOR_EXTENT;
00047 };
00048
00049 #endif // QSEPARATORADAPTER_H
00050
00051
00052
00053
00054
00055
00056
00057