summaryrefslogtreecommitdiffstats
path: root/src/kbfxspinxtoolbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfxspinxtoolbutton.h')
-rw-r--r--src/kbfxspinxtoolbutton.h61
1 files changed, 31 insertions, 30 deletions
diff --git a/src/kbfxspinxtoolbutton.h b/src/kbfxspinxtoolbutton.h
index 2c3d9bf..a8a73dd 100644
--- a/src/kbfxspinxtoolbutton.h
+++ b/src/kbfxspinxtoolbutton.h
@@ -22,14 +22,14 @@
#ifndef KBFX_SPINX_TOOL_BUTTON_H
#define KBFX_SPINX_TOOL_BUTTON_H
-#include <qcursor.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
-#include <qwidget.h>
+#include <tqcursor.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
+#include <tqwidget.h>
#include <kiconloader.h>
#include <kimageeffect.h>
@@ -40,30 +40,31 @@
#include <kbfxdatasource.h>
#include <kbfxplasmapixmapprovider.h>
-class KbfxSpinxToolButton:public QLabel
+class KbfxSpinxToolButton:public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
typedef enum{SINGLE=0,EXPANDABLE} ButtonType;
- KbfxSpinxToolButton ( QWidget * parent = 0, const char * name = 0 );
+ KbfxSpinxToolButton ( TQWidget * tqparent = 0, const char * name = 0 );
virtual ~KbfxSpinxToolButton();
- virtual void paintEvent ( QPaintEvent * pe );
+ virtual void paintEvent ( TQPaintEvent * pe );
- virtual void enterEvent ( QEvent * e );
- virtual void leaveEvent ( QEvent * l );
- virtual void mouseReleaseEvent ( QMouseEvent * me );
+ virtual void enterEvent ( TQEvent * e );
+ virtual void leaveEvent ( TQEvent * l );
+ virtual void mouseReleaseEvent ( TQMouseEvent * me );
/*
- virtual void mousePressEvent(QMouseEvent * me);
+ virtual void mousePressEvent(TQMouseEvent * me);
*/
void setDataSource ( KbfxDataSource * src );
// void setDataGroup(KbfxDataGroup * gsrc);
- void setName ( QString name ) {m_name =name;}
- void setExec ( QString cmd ) { m_exe = cmd;}
+ void setName ( TQString name ) {m_name =name;}
+ void setExec ( TQString cmd ) { m_exe = cmd;}
void setType ( KbfxSpinxToolButton::ButtonType type ) { m_type = type;}
- void setIcon ( QString path );
- void setPixmaps ( QPixmap , QPixmap );
+ void setIcon ( TQString path );
+ void setPixmaps ( TQPixmap , TQPixmap );
public slots:
void fade();
@@ -71,23 +72,23 @@ class KbfxSpinxToolButton:public QLabel
signals:
void clicked();
private:
- QString m_name;
- QString m_exe;
- QString m_icon;
- QString m_tooltip;
+ TQString m_name;
+ TQString m_exe;
+ TQString m_icon;
+ TQString m_tooltip;
- QPixmap m_normal;
- QPixmap m_pressed;
- QPixmap m_hover;
- QPixmap m_current;
- QPixmap m_iconPixmap;
+ TQPixmap m_normal;
+ TQPixmap m_pressed;
+ TQPixmap m_hover;
+ TQPixmap m_current;
+ TQPixmap m_iconPixmap;
KbfxDataSource * m_dataSource;
KbfxDataGroup * m_dataGroup;
ButtonType m_type;
bool m_statePressed;
- QTimer * fade_timer;
+ TQTimer * fade_timer;
float m_opacity;
- QPixmap m_fadePix;
+ TQPixmap m_fadePix;
int m_fadeTime;
};