summaryrefslogtreecommitdiffstats
path: root/plugins/project/audioprojectcddb
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 /plugins/project/audioprojectcddb
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 'plugins/project/audioprojectcddb')
-rw-r--r--plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.cpp24
-rw-r--r--plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.h9
2 files changed, 17 insertions, 16 deletions
diff --git a/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.cpp b/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.cpp
index e523eb3..844071b 100644
--- a/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.cpp
+++ b/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.cpp
@@ -38,15 +38,15 @@
#include <klocale.h>
#include <kconfig.h>
-#include <qstring.h>
+#include <tqstring.h>
K_EXPORT_COMPONENT_FACTORY( libk3baudioprojectcddbplugin, K3bPluginFactory<K3bAudioProjectCddbPlugin>( "libk3baudioprojectcddbplugin" ) )
-K3bAudioProjectCddbPlugin::K3bAudioProjectCddbPlugin( QObject* parent,
+K3bAudioProjectCddbPlugin::K3bAudioProjectCddbPlugin( TQObject* tqparent,
const char* name )
- : K3bProjectPlugin( AUDIO_CD, false, parent, name ),
+ : K3bProjectPlugin( AUDIO_CD, false, tqparent, name ),
m_cddb(0),
m_progress(0)
{
@@ -61,25 +61,25 @@ K3bAudioProjectCddbPlugin::~K3bAudioProjectCddbPlugin()
}
-void K3bAudioProjectCddbPlugin::activate( K3bDoc* doc, QWidget* parent )
+void K3bAudioProjectCddbPlugin::activate( K3bDoc* doc, TQWidget* tqparent )
{
m_doc = dynamic_cast<K3bAudioDoc*>( doc );
- m_parentWidget = parent;
+ m_parentWidget = tqparent;
m_canceled = false;
if( !m_doc || m_doc->numOfTracks() == 0 ) {
- KMessageBox::sorry( parent, i18n("Please select a non-empty audio project for a cddb query.") );
+ KMessageBox::sorry( tqparent, i18n("Please select a non-empty audio project for a cddb query.") );
}
else {
if( !m_cddb ) {
m_cddb = new K3bCddb( this );
- connect( m_cddb, SIGNAL(queryFinished(int)),
- this, SLOT(slotCddbQueryFinished(int)) );
+ connect( m_cddb, TQT_SIGNAL(queryFinished(int)),
+ this, TQT_SLOT(slotCddbQueryFinished(int)) );
}
if( !m_progress ) {
- m_progress = new K3bProgressDialog( i18n("Query Cddb"), parent, i18n("Audio Project") );
- connect( m_progress, SIGNAL(cancelClicked()),
- this, SLOT(slotCancelClicked()) );
+ m_progress = new K3bProgressDialog( i18n("Query Cddb"), tqparent, i18n("Audio Project") );
+ connect( m_progress, TQT_SIGNAL(cancelClicked()),
+ this, TQT_SLOT(slotCancelClicked()) );
}
// read the k3b config :)
@@ -141,7 +141,7 @@ void K3bAudioProjectCddbPlugin::slotCddbQueryFinished( int error )
}
}
- // make sure the progress dialog does not get deleted by it's parent
+ // make sure the progress dialog does not get deleted by it's tqparent
delete m_progress;
m_doc = 0;
m_parentWidget = 0;
diff --git a/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.h b/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.h
index a0e7880..40aabd5 100644
--- a/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.h
+++ b/plugins/project/audioprojectcddb/k3baudioprojectcddbplugin.h
@@ -22,19 +22,20 @@
class K3bCddb;
class K3bAudioDoc;
class K3bProgressDialog;
-class QWidget;
+class TQWidget;
class K3bAudioProjectCddbPlugin : public K3bProjectPlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioProjectCddbPlugin( QObject* parent, const char* name );
+ K3bAudioProjectCddbPlugin( TQObject* tqparent, const char* name );
~K3bAudioProjectCddbPlugin();
int pluginSystemVersion() const { return 3; }
- void activate( K3bDoc* doc, QWidget* parent );
+ void activate( K3bDoc* doc, TQWidget* tqparent );
private slots:
void slotCddbQueryFinished( int result );
@@ -44,7 +45,7 @@ class K3bAudioProjectCddbPlugin : public K3bProjectPlugin
K3bCddb* m_cddb;
K3bAudioDoc* m_doc;
K3bProgressDialog* m_progress;
- QWidget* m_parentWidget;
+ TQWidget* m_parentWidget;
bool m_canceled;
};