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/kde1/kde1client.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/kde1/kde1client.h')
-rw-r--r-- | kwin-styles/kde1/kde1client.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kwin-styles/kde1/kde1client.h b/kwin-styles/kde1/kde1client.h index 27a246dd..5c960abd 100644 --- a/kwin-styles/kde1/kde1client.h +++ b/kwin-styles/kde1/kde1client.h @@ -5,11 +5,11 @@ Copyright (C) 1999, 2000 Matthias Ettrich <[email protected]> ******************************************************************/ #ifndef STDCLIENT_H #define STDCLIENT_H -#include <qlayout.h> -#include <qvariant.h> +#include <tqlayout.h> +#include <tqvariant.h> #include <kdecoration.h> #include <kdecorationfactory.h> -#include <qtoolbutton.h> +#include <tqtoolbutton.h> class QLabel; class QSpacerItem; @@ -32,19 +32,19 @@ public: StdClient( KDecorationBridge* b, KDecorationFactory* f ); ~StdClient(); void init(); - QSize minimumSize() const; + TQSize minimumSize() const; void borders( int& left, int& right, int& top, int& bottom ) const; void reset( unsigned long mask ); - void resize( const QSize& s ); + void resize( const TQSize& s ); void shadeChange() {}; - Position mousePosition( const QPoint& p ) const { return KDecoration::mousePosition( p ); } + Position mousePosition( const TQPoint& p ) const { return KDecoration::mousePosition( p ); } protected: - bool eventFilter( QObject* o, QEvent* e ); - void resizeEvent( QResizeEvent* ); - void paintEvent( QPaintEvent* ); + bool eventFilter( TQObject* o, TQEvent* e ); + void resizeEvent( TQResizeEvent* ); + void paintEvent( TQPaintEvent* ); - void mouseDoubleClickEvent( QMouseEvent * ); - void wheelEvent( QWheelEvent * ); + void mouseDoubleClickEvent( TQMouseEvent * ); + void wheelEvent( TQWheelEvent * ); void captionChange(); void iconChange(); void maximizeChange(); @@ -52,15 +52,15 @@ protected: void activeChange(); private: - void addButtons(QBoxLayout* hb, const QString& buttons); + void addButtons(TQBoxLayout* hb, const TQString& buttons); private slots: void menuButtonPressed(); void maxButtonClicked( ButtonState ); private: - QToolButton* button[ButtonTypeCount]; - QSpacerItem* titlebar; + TQToolButton* button[ButtonTypeCount]; + TQSpacerItem* titlebar; }; class StdToolClient : public KDecoration @@ -70,44 +70,44 @@ public: StdToolClient( KDecorationBridge* b, KDecorationFactory* f ); ~StdToolClient(); void init(); - QSize minimumSize() const; + TQSize minimumSize() const; void borders( int& left, int& right, int& top, int& bottom ) const; void reset( unsigned long mask ); - void resize( const QSize& s ); + void resize( const TQSize& s ); void shadeChange() {}; void activeChange() {}; void iconChange() {}; void maximizeChange() {}; void desktopChange() {}; - Position mousePosition( const QPoint& p ) const { return KDecoration::mousePosition( p ); } + Position mousePosition( const TQPoint& p ) const { return KDecoration::mousePosition( p ); } protected: - bool eventFilter( QObject* o, QEvent* e ); - void resizeEvent( QResizeEvent* ); - void paintEvent( QPaintEvent* ); + bool eventFilter( TQObject* o, TQEvent* e ); + void resizeEvent( TQResizeEvent* ); + void paintEvent( TQPaintEvent* ); - void mouseDoubleClickEvent( QMouseEvent * ); - void wheelEvent( QWheelEvent * ); + void mouseDoubleClickEvent( TQMouseEvent * ); + void wheelEvent( TQWheelEvent * ); void captionChange(); private: - QToolButton* closeBtn; - QSpacerItem* titlebar; + TQToolButton* closeBtn; + TQSpacerItem* titlebar; }; /* - Like QToolButton, but provides a clicked(ButtonState) signals that + Like TQToolButton, but provides a clicked(ButtonState) signals that has the last pressed mouse button as argument */ class ThreeButtonButton: public QToolButton { Q_OBJECT public: - ThreeButtonButton ( QWidget *parent = 0, const char* name = 0 ) - : QToolButton( parent, name ) + ThreeButtonButton ( TQWidget *parent = 0, const char* name = 0 ) + : TQToolButton( parent, name ) { - connect( this, SIGNAL( clicked() ), this, SLOT( handleClicked() ) ); + connect( this, TQT_SIGNAL( clicked() ), this, TQT_SLOT( handleClicked() ) ); setCursor( arrowCursor ); } ~ThreeButtonButton () {} @@ -116,17 +116,17 @@ signals: void clicked( ButtonState ); protected: - void mousePressEvent( QMouseEvent* e ) + void mousePressEvent( TQMouseEvent* e ) { last_button = e->button(); - QMouseEvent me ( e->type(), e->pos(), e->globalPos(), LeftButton, e->state() ); - QToolButton::mousePressEvent( &me ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), LeftButton, e->state() ); + TQToolButton::mousePressEvent( &me ); } - void mouseReleaseEvent( QMouseEvent* e ) + void mouseReleaseEvent( TQMouseEvent* e ) { - QMouseEvent me ( e->type(), e->pos(), e->globalPos(), LeftButton, e->state() ); - QToolButton::mouseReleaseEvent( &me ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), LeftButton, e->state() ); + TQToolButton::mouseReleaseEvent( &me ); } private slots: |