diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kivio/kiviopart/stencilbarbutton.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/kiviopart/stencilbarbutton.h')
-rw-r--r-- | kivio/kiviopart/stencilbarbutton.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/kivio/kiviopart/stencilbarbutton.h b/kivio/kiviopart/stencilbarbutton.h index 3227c744..88bfe60b 100644 --- a/kivio/kiviopart/stencilbarbutton.h +++ b/kivio/kiviopart/stencilbarbutton.h @@ -19,22 +19,23 @@ #ifndef STENCILBARBUTTON_H #define STENCILBARBUTTON_H -#include <qpushbutton.h> +#include <tqpushbutton.h> -class QPixmap; +class TQPixmap; namespace Kivio { -class DragBarButton : public QPushButton +class DragBarButton : public TQPushButton { Q_OBJECT + TQ_OBJECT public: - DragBarButton( const QString&, QWidget* parent, const char* name = 0 ); + DragBarButton( const TQString&, TQWidget* tqparent, const char* name = 0 ); ~DragBarButton(); - void setIcon( const QString& ); - void setPixmap( const QPixmap& ); + void setIcon( const TQString& ); + void setPixmap( const TQPixmap& ); - QSize sizeHint() const; + TQSize tqsizeHint() const; Qt::Orientation orientation() const { return m_orientation; } @@ -44,25 +45,25 @@ class DragBarButton : public QPushButton void closeRequired(DragBarButton *); public slots: - void setOrientation(Orientation orientation); + void setOrientation(Qt::Orientation orientation); protected: - void drawButton( QPainter* ); - void mousePressEvent( QMouseEvent* ); - void mouseReleaseEvent( QMouseEvent* ); - void mouseMoveEvent( QMouseEvent* ); + void drawButton( TQPainter* ); + void mousePressEvent( TQMouseEvent* ); + void mouseReleaseEvent( TQMouseEvent* ); + void mouseMoveEvent( TQMouseEvent* ); - void enterEvent( QEvent* ); - void leaveEvent( QEvent* ); + void enterEvent( TQEvent* ); + void leaveEvent( TQEvent* ); private: - QPixmap* m_pClosePix; - QPixmap* m_pIcon; + TQPixmap* m_pClosePix; + TQPixmap* m_pIcon; bool m_bPressed; bool m_bDragged; bool m_bMouseOn; bool m_bClose; - QPoint m_ppoint; + TQPoint m_ppoint; Qt::Orientation m_orientation; }; |