/*************************************************************************** transtop.h - description ------------------- begin : Sun Mar 17 2002 copyright : (C) 2002 by Vladimir Shutoff email : vovan@shutoff.ru ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _TRANSTOP_H #define _TRANSTOP_H #include "simapi.h" #include #include class KRootPixmap; class TransparentTop : public QObject { Q_OBJECT public: TransparentTop(QWidget *parent, unsigned transparent); ~TransparentTop(); static void setTransparent(QWidget*, bool isTransparent, unsigned long transparency); static bool bCanTransparent; static TransparentTop *getTransparent(QWidget*); QPixmap background(const QColor &c); KRootPixmap *rootpixmap; void setTransparent(unsigned transparent); void transparentChanged(); #if COMPAT_QT_VERSION < 0x030000 protected: virtual bool eventFilter(QObject *o, QEvent *e); #else protected slots: void backgroundUpdated( const QPixmap &pm ); protected: QPixmap bg; #endif double m_transparent; }; #endif