diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /renamedlgplugins/audio/audio_plugin.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'renamedlgplugins/audio/audio_plugin.cpp')
-rw-r--r-- | renamedlgplugins/audio/audio_plugin.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/renamedlgplugins/audio/audio_plugin.cpp b/renamedlgplugins/audio/audio_plugin.cpp index f8114bd..44ae9d0 100644 --- a/renamedlgplugins/audio/audio_plugin.cpp +++ b/renamedlgplugins/audio/audio_plugin.cpp @@ -22,12 +22,12 @@ #include <kgenericfactory.h> #include <renamedlgplugin.h> #include <kio/renamedlg.h> -#include <qlabel.h> -#include <qdialog.h> -#include <qwidget.h> -#include <qstringlist.h> +#include <tqlabel.h> +#include <tqdialog.h> +#include <tqwidget.h> +#include <tqstringlist.h> #include <kio/global.h> -#include <qlayout.h> +#include <tqlayout.h> #include <sys/types.h> @@ -35,11 +35,11 @@ class AudioPlugin : public RenameDlgPlugin{ public: - AudioPlugin( QDialog *dialog, const char *name, const QStringList & ); + AudioPlugin( TQDialog *dialog, const char *name, const TQStringList & ); ~AudioPlugin(); - virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const QString &/*_src*/, const QString &/*_dest*/, - const QString &/*mimeSrc*/, - const QString &/*mimeDest*/, + virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const TQString &/*_src*/, const TQString &/*_dest*/, + const TQString &/*mimeSrc*/, + const TQString &/*mimeDest*/, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, @@ -48,30 +48,30 @@ public: time_t /*mtimeDest*/ ); }; -AudioPlugin::AudioPlugin( QDialog *dialog, const char *name, const QStringList &list ) : RenameDlgPlugin( dialog, name, list) { +AudioPlugin::AudioPlugin( TQDialog *dialog, const char *name, const TQStringList &list ) : RenameDlgPlugin( dialog, name, list) { qWarning("loaded" ); } AudioPlugin::~AudioPlugin() { } -bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, const QString &_dest, - const QString &mimeSrc, - const QString &mimeDest, +bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const TQString &_src, const TQString &_dest, + const TQString &mimeSrc, + const TQString &mimeDest, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, time_t /*ctimeDest*/, time_t mtimeSrc, time_t mtimeDest ) { - QGridLayout *lay = new QGridLayout(this, 4, 3, 5); + TQGridLayout *lay = new TQGridLayout(this, 4, 3, 5); if( mode & KIO::M_OVERWRITE ){ - QLabel *label_head = new QLabel(this); - QLabel *label_src = new QLabel(this); - QLabel *label_dst = new QLabel(this); - QLabel *label_ask = new QLabel(this); + TQLabel *label_head = new TQLabel(this); + TQLabel *label_src = new TQLabel(this); + TQLabel *label_dst = new TQLabel(this); + TQLabel *label_ask = new TQLabel(this); - QString sentence1; - QString dest = KURL::fromPathOrURL(_dest).pathOrURL(); + TQString sentence1; + TQString dest = KURL::fromPathOrURL(_dest).pathOrURL(); if (mtimeDest < mtimeSrc) sentence1 = i18n("An older file named '%1' already exists.\n").arg(dest); else if (mtimeDest == mtimeSrc) @@ -100,5 +100,5 @@ bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, con return true; } -typedef KGenericFactory<AudioPlugin, QDialog> AudioPluginFactory; +typedef KGenericFactory<AudioPlugin, TQDialog> AudioPluginFactory; K_EXPORT_COMPONENT_FACTORY( librenaudioplugin, AudioPluginFactory("audiorename_plugin") ) |