summaryrefslogtreecommitdiffstats
path: root/libk3b/tools/k3blistviewitemanimator.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /libk3b/tools/k3blistviewitemanimator.h
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/tools/k3blistviewitemanimator.h')
-rw-r--r--libk3b/tools/k3blistviewitemanimator.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/libk3b/tools/k3blistviewitemanimator.h b/libk3b/tools/k3blistviewitemanimator.h
index 200079a..660ee98 100644
--- a/libk3b/tools/k3blistviewitemanimator.h
+++ b/libk3b/tools/k3blistviewitemanimator.h
@@ -16,48 +16,49 @@
#ifndef _K3B_LISTVIEWITEM_ANIMATOR_H_
#define _K3B_LISTVIEWITEM_ANIMATOR_H_
-#include <qobject.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
#include "k3b_export.h"
-class QListViewItem;
-class QTimer;
+class TQListViewItem;
+class TQTimer;
/**
* Fades an icon on a listview item in and out.
*/
-class LIBK3B_EXPORT K3bListViewItemAnimator : public QObject
+class LIBK3B_EXPORT K3bListViewItemAnimator : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bListViewItemAnimator( QObject* parent = 0, const char* name = 0 );
+ K3bListViewItemAnimator( TQObject* tqparent = 0, const char* name = 0 );
/**
* Will use the items pixmap.
*/
- K3bListViewItemAnimator( QListViewItem* item, int col, QObject* parent = 0, const char* name = 0 );
+ K3bListViewItemAnimator( TQListViewItem* item, int col, TQObject* tqparent = 0, const char* name = 0 );
~K3bListViewItemAnimator();
- QListViewItem* item() const;
+ TQListViewItem* item() const;
public slots:
void start();
void stop();
- void setItem( QListViewItem*, int col );
+ void setItem( TQListViewItem*, int col );
/**
* Default is the pixmap from the item.
*/
- void setPixmap( const QPixmap& );
+ void setPixmap( const TQPixmap& );
void setColumn( int col );
/**
* Default is the base color of the listview.
*/
- void setFadeColor( const QColor& );
+ void setFadeColor( const TQColor& );
private slots:
void slotAnimate();
@@ -67,12 +68,12 @@ class LIBK3B_EXPORT K3bListViewItemAnimator : public QObject
int m_animationStep;
bool m_animationBack;
- QPixmap m_pixmap;
- QColor m_fadeColor;
- QListViewItem* m_item;
+ TQPixmap m_pixmap;
+ TQColor m_fadeColor;
+ TQListViewItem* m_item;
int m_column;
- QTimer* m_timer;
+ TQTimer* m_timer;
};
#endif