summaryrefslogtreecommitdiffstats
path: root/libk3b/tools/k3bthreadwidget.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/k3bthreadwidget.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/k3bthreadwidget.h')
-rw-r--r--libk3b/tools/k3bthreadwidget.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/libk3b/tools/k3bthreadwidget.h b/libk3b/tools/k3bthreadwidget.h
index b3fedb2..1b514c2 100644
--- a/libk3b/tools/k3bthreadwidget.h
+++ b/libk3b/tools/k3bthreadwidget.h
@@ -16,11 +16,11 @@
#ifndef _K3B_THREAD_WIDGET_H_
#define _K3B_THREAD_WIDGET_H_
-#include <qobject.h>
-#include <qintdict.h>
+#include <tqobject.h>
+#include <tqintdict.h>
-class QCustomEvent;
+class TQCustomEvent;
namespace K3bDevice {
class Device;
}
@@ -32,9 +32,10 @@ namespace K3bDevice {
* Since the calling thread cannot create the K3bThreadWidget by himself there exists
* exactly one instance created by K3bCore which is used by all threads.
*/
-class K3bThreadWidget : public QObject
+class K3bThreadWidget : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
~K3bThreadWidget();
@@ -44,14 +45,14 @@ class K3bThreadWidget : public QObject
/**
* Call this from a thread to show a device selection dialog.
*/
- static K3bDevice::Device* selectDevice( QWidget* parent,
- const QString& text = QString::null );
+ static K3bDevice::Device* selectDevice( TQWidget* tqparent,
+ const TQString& text = TQString() );
protected:
/**
* communication between the threads
*/
- void customEvent( QCustomEvent* );
+ void customEvent( TQCustomEvent* );
private:
/**
@@ -70,7 +71,7 @@ class K3bThreadWidget : public QObject
Data* data( int id );
int m_idCounter;
- QIntDict<Data> m_dataMap;
+ TQIntDict<Data> m_dataMap;
static K3bThreadWidget* s_instance;
};