summaryrefslogtreecommitdiffstats
path: root/src/kbfxbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfxbutton.h')
-rw-r--r--src/kbfxbutton.h67
1 files changed, 34 insertions, 33 deletions
diff --git a/src/kbfxbutton.h b/src/kbfxbutton.h
index d4ece12..a333b2d 100644
--- a/src/kbfxbutton.h
+++ b/src/kbfxbutton.h
@@ -22,12 +22,12 @@
#ifndef KBFX_BUTTON_H
#define KBFX_BUTTON_H
-#include <qdragobject.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qtimer.h>
+#include <tqdragobject.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
#include <dcopclient.h>
#include <dcopref.h>
@@ -42,26 +42,27 @@
#include <kbfxplasmapixmapprovider.h>
-class QPixmap;
-class QLabel;
+class TQPixmap;
+class TQLabel;
-class KbfxButton:public QLabel
+class KbfxButton:public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- KbfxButton ( QWidget * parent, const char * name = 0 );
+ KbfxButton ( TQWidget * tqparent, const char * name = 0 );
~KbfxButton();
void kbfx_vista_button_setFx ( bool choice );
- virtual void paintEvent ( QPaintEvent *pe );
- virtual void enterEvent ( QEvent * e ) ;
- virtual void leaveEvent ( QEvent * e );
- virtual void mousePressEvent ( QMouseEvent * e );
- virtual void dropEvent ( QDropEvent *e );
- virtual void dragEnterEvent ( QDragEnterEvent *e );
+ virtual void paintEvent ( TQPaintEvent *pe );
+ virtual void enterEvent ( TQEvent * e ) ;
+ virtual void leaveEvent ( TQEvent * e );
+ virtual void mousePressEvent ( TQMouseEvent * e );
+ virtual void dropEvent ( TQDropEvent *e );
+ virtual void dragEnterEvent ( TQDragEnterEvent *e );
static bool m_sizeHeight;
static int m_size;
- QCString findPanel();
+ TQCString findPanel();
void readjust( bool );
public slots:
@@ -82,31 +83,31 @@ class KbfxButton:public QLabel
void showToolTip ();
protected:
- QPixmap m_over_skin;
- QPixmap m_pressed_skin;
- QPixmap m_release_skin;
- QPixmap m_normal_skin;
- QPixmap m_current_skin;
+ TQPixmap m_over_skin;
+ TQPixmap m_pressed_skin;
+ TQPixmap m_release_skin;
+ TQPixmap m_normal_skin;
+ TQPixmap m_current_skin;
// mng support ???
- QPixmap * m_buffer;
- QTimer * m_anime_timer;
- QMovie * m_normal_anime;
- QMovie * m_pressed_anime;
- QMovie * m_hover_anime;
- QMovie * m_current_anime;
- QString m_normal_path;
- QString m_over_path;
- QString m_pressed_path;
+ TQPixmap * m_buffer;
+ TQTimer * m_anime_timer;
+ TQMovie * m_normal_anime;
+ TQMovie * m_pressed_anime;
+ TQMovie * m_hover_anime;
+ TQMovie * m_current_anime;
+ TQString m_normal_path;
+ TQString m_over_path;
+ TQString m_pressed_path;
bool m_anime_on;
bool m_kicker_auto_adjust;
DCOPClient * m_dcopClient;
/* state of the button */
bool m_toggle;
- QTimer * fade_timer;
+ TQTimer * fade_timer;
float m_opacity;
- QPixmap m_fadePix;
+ TQPixmap m_fadePix;
int m_fadeTime;
};