summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/styledbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/styledbutton.h')
-rw-r--r--kdevdesigner/designer/styledbutton.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/kdevdesigner/designer/styledbutton.h b/kdevdesigner/designer/styledbutton.h
index 882090c7..16d0b396 100644
--- a/kdevdesigner/designer/styledbutton.h
+++ b/kdevdesigner/designer/styledbutton.h
@@ -27,8 +27,8 @@
#ifndef STYLEDBUTTON_H
#define STYLEDBUTTON_H
-#include <qbutton.h>
-#include <qpixmap.h>
+#include <tqbutton.h>
+#include <tqpixmap.h>
class QColor;
class QBrush;
@@ -38,8 +38,8 @@ class StyledButton : public QButton
{
Q_OBJECT
- Q_PROPERTY( QColor color READ color WRITE setColor )
- Q_PROPERTY( QPixmap pixmap READ pixmap WRITE setPixmap )
+ Q_PROPERTY( TQColor color READ color WRITE setColor )
+ Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap )
Q_PROPERTY( EditorType editor READ editor WRITE setEditor )
Q_PROPERTY( bool scale READ scale WRITE setScale )
@@ -48,24 +48,24 @@ class StyledButton : public QButton
public:
enum EditorType { ColorEditor, PixmapEditor };
- StyledButton( QWidget* parent = 0, const char* name = 0 );
- StyledButton( const QBrush& b, QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
+ StyledButton( TQWidget* parent = 0, const char* name = 0 );
+ StyledButton( const TQBrush& b, TQWidget* parent = 0, const char* name = 0, WFlags f = 0 );
~StyledButton();
void setEditor( EditorType );
EditorType editor() const;
- void setColor( const QColor& );
- void setPixmap( const QPixmap& );
+ void setColor( const TQColor& );
+ void setPixmap( const TQPixmap& );
- QPixmap* pixmap() const;
- QColor color() const;
+ TQPixmap* pixmap() const;
+ TQColor color() const;
void setScale( bool );
bool scale() const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
void setFormWindow( FormWindow *fw ) { formWindow = fw; }
@@ -76,27 +76,27 @@ signals:
void changed();
protected:
- void mousePressEvent(QMouseEvent*);
- void mouseMoveEvent(QMouseEvent*);
+ void mousePressEvent(TQMouseEvent*);
+ void mouseMoveEvent(TQMouseEvent*);
#ifndef QT_NO_DRAGANDDROP
- void dragEnterEvent ( QDragEnterEvent * );
- void dragMoveEvent ( QDragMoveEvent * );
- void dragLeaveEvent ( QDragLeaveEvent * );
- void dropEvent ( QDropEvent * );
+ void dragEnterEvent ( TQDragEnterEvent * );
+ void dragMoveEvent ( TQDragMoveEvent * );
+ void dragLeaveEvent ( TQDragLeaveEvent * );
+ void dropEvent ( TQDropEvent * );
#endif // QT_NO_DRAGANDDROP
- void drawButton( QPainter* );
- void drawButtonLabel( QPainter* );
- void resizeEvent( QResizeEvent* );
+ void drawButton( TQPainter* );
+ void drawButtonLabel( TQPainter* );
+ void resizeEvent( TQResizeEvent* );
void scalePixmap();
private:
- QPixmap* pix;
- QPixmap* spix; // the pixmap scaled down to fit into the button
- QColor col;
+ TQPixmap* pix;
+ TQPixmap* spix; // the pixmap scaled down to fit into the button
+ TQColor col;
EditorType edit;
bool s;
FormWindow *formWindow;
- QPoint pressPos;
+ TQPoint pressPos;
bool mousePressed;
};