summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/stencilbarbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/stencilbarbutton.h')
-rw-r--r--kivio/kiviopart/stencilbarbutton.h35
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;
};