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
00022
00023
00024
00025 #ifndef QXTPUSHBUTTON_H
00026 #define QXTPUSHBUTTON_H
00027
00028 #include <QPushButton>
00029 #include "qxtnamespace.h"
00030 #include "qxtglobal.h"
00031 #include "qxtpimpl.h"
00032
00033 class QxtPushButtonPrivate;
00034
00035 class QXT_GUI_EXPORT QxtPushButton : public QPushButton
00036 {
00037 Q_OBJECT
00038 QXT_DECLARE_PRIVATE(QxtPushButton);
00039 Q_PROPERTY(Qxt::Rotation rotation READ rotation WRITE setRotation)
00040 Q_PROPERTY(Qt::TextFormat textFormat READ textFormat WRITE setTextFormat)
00041
00042 public:
00043 explicit QxtPushButton(QWidget* parent = 0);
00044 explicit QxtPushButton(const QString& text, QWidget* parent = 0);
00045 explicit QxtPushButton(const QIcon& icon, const QString& text, QWidget* parent = 0);
00046 explicit QxtPushButton(Qxt::Rotation rotation, const QString& text, QWidget* parent = 0);
00047 virtual ~QxtPushButton();
00048
00049 Qxt::Rotation rotation() const;
00050 void setRotation(Qxt::Rotation rotation);
00051
00052 Qt::TextFormat textFormat() const;
00053 void setTextFormat(Qt::TextFormat format);
00054
00055 virtual QSize sizeHint() const;
00056 virtual QSize minimumSizeHint() const;
00057
00058 protected:
00059 virtual void paintEvent(QPaintEvent* event);
00060 };
00061
00062 #endif // QXTPUSHBUTTON_H