Diffstat (limited to 'noncore/settings/appearance2/sample.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/sample.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/sample.h b/noncore/settings/appearance2/sample.h new file mode 100644 index 0000000..c6f9b5a --- a/dev/null +++ b/noncore/settings/appearance2/sample.h @@ -0,0 +1,49 @@ +#ifndef __PREVIEW_H__ +#define __PREVIEW_H__ + +#include <qwidget.h> + +#include <qpe/windowdecorationinterface.h> + +class QVBox; +class QPopupMenu; +class SampleText; + +class SampleWindow : public QWidget +{ + Q_OBJECT +public: + SampleWindow( QWidget *parent ); + + QSize sizeHint() const; + + virtual void setFont( const QFont &f ); + + void setStyle2 ( QStyle *sty ); + void setDecoration( WindowDecorationInterface *i ); + void setPalette ( const QPalette & ); + + virtual void paintEvent( QPaintEvent * ); + + void init(); + + virtual bool eventFilter( QObject *, QEvent *e ); + virtual void paletteChange( const QPalette &old ); + virtual void resizeEvent( QResizeEvent *re ); + +public slots: + void fixGeometry(); + +protected: + WindowDecorationInterface *iface; + WindowDecorationInterface::WindowData wd; + QVBox *container; + QPopupMenu *popup; + int th; + int tb; + int lb; + int rb; + int bb; +}; + +#endif |