summaryrefslogtreecommitdiffstats
path: root/client/crystalbutton.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:17:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:17:46 +0000
commit21a1d3cffb820b001b0901f8e82d4c8bfc5e1683 (patch)
treead9d08bc725d963acafab219a33699ae2d6e723c /client/crystalbutton.h
parent424422475d6f30da2b84041dcb2b13b425126f04 (diff)
downloadtwin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.tar.gz
twin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.zip
TQt4 port kwin-style-crystal
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kwin-style-crystal@1239032 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'client/crystalbutton.h')
-rw-r--r--client/crystalbutton.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/client/crystalbutton.h b/client/crystalbutton.h
index c1f55c5..ad2cb95 100644
--- a/client/crystalbutton.h
+++ b/client/crystalbutton.h
@@ -23,35 +23,36 @@
#ifndef _CRYSTALBUTTON_INCLUDED_
#define _CRYSTALBUTTON_INCLUDED_
-#include <qbutton.h>
+#include <tqbutton.h>
class CrystalClient;
class ButtonImage;
-class CrystalButton : public QButton
+class CrystalButton : public TQButton
{
Q_OBJECT
+ TQ_OBJECT
public:
- CrystalButton(CrystalClient *parent=0, const char *name=0,
- const QString &tip=NULL,
+ CrystalButton(CrystalClient *tqparent=0, const char *name=0,
+ const TQString &tip=NULL,
ButtonType type=ButtonHelp,
ButtonImage *vimage=NULL);
virtual ~CrystalButton();
void setBitmap(ButtonImage *newimage);
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
int lastMousePress() const { return lastmouse_; }
- void reset() { repaint(false); }
+ void reset() { tqrepaint(false); }
void setFirstLast(bool vfirst,bool vlast) { first|=vfirst; last|=vlast; }
void resetSize(bool FullSize);
private:
- void enterEvent(QEvent *e);
- void leaveEvent(QEvent *e);
- void mousePressEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
- void drawButton(QPainter *painter);
- void drawMenuImage(QPainter *painter, QRect r);
+ void enterEvent(TQEvent *e);
+ void leaveEvent(TQEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
+ void drawButton(TQPainter *painter);
+ void drawMenuImage(TQPainter *painter, TQRect r);
int buttonSizeH() const;
int buttonSizeV() const;
@@ -60,7 +61,7 @@ private slots:
void animate();
private:
- QTimer animation_timer;
+ TQTimer animation_timer;
bool first,last;
bool hover;
float animation;