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 QXTLETTERBOXWIDGET_H
00026 #define QXTLETTERBOXWIDGET_H
00027
00028 #include <QFrame>
00029 #include "qxtglobal.h"
00030 #include "qxtpimpl.h"
00031
00032 class QxtLetterBoxWidgetPrivate;
00033
00034 class QXT_GUI_EXPORT QxtLetterBoxWidget : public QFrame
00035 {
00036 Q_OBJECT
00037 QXT_DECLARE_PRIVATE(QxtLetterBoxWidget);
00038 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor RESET clearBackgroundColor)
00039 Q_PROPERTY(int margin READ margin WRITE setMargin)
00040 Q_PROPERTY(uint resizeDelay READ resizeDelay WRITE setResizeDelay)
00041
00042 public:
00043 QxtLetterBoxWidget(QWidget* parent = 0);
00044 ~QxtLetterBoxWidget();
00045
00046 QColor backgroundColor() const;
00047 void setBackgroundColor(const QColor& color);
00048 void clearBackgroundColor();
00049
00050 int margin() const;
00051 void setMargin(int margin);
00052
00053 QWidget* widget() const;
00054 void setWidget(QWidget* widget);
00055
00056 uint resizeDelay() const;
00057 void setResizeDelay(uint delay);
00058
00059 public Q_SLOTS:
00060 void resizeWidget();
00061
00062 protected:
00063 void resizeEvent(QResizeEvent* event);
00064 };
00065
00066 #endif // QXTLETTERBOXWIDGET_H