diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:27:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:27:15 +0000 |
commit | b5d38fd2e94066885d4620b0c35c48a2faa5aa44 (patch) | |
tree | 7e7e611e0e3ef23dc2efd327a7455bcf4d7c9b7f /kwin-styles/system/systemclient.h | |
parent | 019ebb9a949a97c898e5d563f0699a3ff49e6588 (diff) | |
download | tdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.tar.gz tdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1157637 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin-styles/system/systemclient.h')
-rw-r--r-- | kwin-styles/system/systemclient.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kwin-styles/system/systemclient.h b/kwin-styles/system/systemclient.h index 360f204d..3ab4df8d 100644 --- a/kwin-styles/system/systemclient.h +++ b/kwin-styles/system/systemclient.h @@ -1,9 +1,9 @@ #ifndef __SYSTEMCLIENT_H #define __SYSTEMCLIENT_H -#include <qvariant.h> -#include <qbitmap.h> -#include <qbutton.h> +#include <tqvariant.h> +#include <tqbitmap.h> +#include <tqbutton.h> #include <kpixmap.h> #include <kdecoration.h> @@ -33,9 +33,9 @@ class SystemClient : public KDecoration public: SystemClient(KDecorationBridge* bridge, KDecorationFactory* factory); ~SystemClient(); - virtual Position mousePosition(const QPoint& p) const; - virtual void resize(const QSize&); - virtual bool eventFilter(QObject* o, QEvent* e); + virtual Position mousePosition(const TQPoint& p) const; + virtual void resize(const TQSize&); + virtual bool eventFilter(TQObject* o, TQEvent* e); virtual void init(); protected: virtual void maximizeChange(); @@ -44,53 +44,53 @@ class SystemClient : public KDecoration virtual void iconChange(); virtual void desktopChange(); virtual void activeChange(); - virtual QSize minimumSize() const; + virtual TQSize minimumSize() const; virtual void borders(int&, int&, int&, int&) const; virtual void reset( unsigned long changed ); - void drawRoundFrame(QPainter &p, int x, int y, int w, int h); - void resizeEvent( QResizeEvent* ); - void paintEvent( QPaintEvent* ); - void showEvent( QShowEvent* ); - void mouseDoubleClickEvent( QMouseEvent * ); - void wheelEvent(QWheelEvent *e); + void drawRoundFrame(TQPainter &p, int x, int y, int w, int h); + void resizeEvent( TQResizeEvent* ); + void paintEvent( TQPaintEvent* ); + void showEvent( TQShowEvent* ); + void mouseDoubleClickEvent( TQMouseEvent * ); + void wheelEvent(TQWheelEvent *e); void doShape(); void recalcTitleBuffer(); private: - void addButtons(QBoxLayout* hb, const QString& buttons); + void addButtons(TQBoxLayout* hb, const TQString& buttons); private slots: void maxButtonClicked(); private: SystemButton* button[ButtonTypeCount]; - QSpacerItem* titlebar; - QPixmap titleBuffer; - QString oldTitle; + TQSpacerItem* titlebar; + TQPixmap titleBuffer; + TQString oldTitle; }; class SystemButton : public QButton { public: SystemButton(SystemClient *parent=0, const char *name=0, - const unsigned char *bitmap=NULL, const QString& tip=NULL); + const unsigned char *bitmap=NULL, const TQString& tip=NULL); void setBitmap(const unsigned char *bitmap); void reset(); - QSize sizeHint() const; - void setTipText(const QString &tip); + TQSize sizeHint() const; + void setTipText(const TQString &tip); ButtonState last_button; protected: - virtual void drawButton(QPainter *p); - void drawButtonLabel(QPainter *){} - QBitmap deco; + virtual void drawButton(TQPainter *p); + void drawButtonLabel(TQPainter *){} + TQBitmap deco; - void mousePressEvent( QMouseEvent* e ); - void mouseReleaseEvent( QMouseEvent* e ); + void mousePressEvent( TQMouseEvent* e ); + void mouseReleaseEvent( TQMouseEvent* e ); private: SystemClient* client; }; -class SystemDecoFactory : public QObject, public KDecorationFactory +class SystemDecoFactory : public TQObject, public KDecorationFactory { Q_OBJECT public: @@ -99,7 +99,7 @@ class SystemDecoFactory : public QObject, public KDecorationFactory virtual KDecoration *createDecoration(KDecorationBridge *); virtual bool reset(unsigned long); virtual bool supports( Ability ability ); - virtual QValueList< BorderSize > borderSizes() const; + virtual TQValueList< BorderSize > borderSizes() const; private: void readConfig(); }; |