diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kioslave/audiocd/kcmaudiocd | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/audiocd/kcmaudiocd')
-rw-r--r-- | kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp | 84 | ||||
-rw-r--r-- | kioslave/audiocd/kcmaudiocd/kcmaudiocd.h | 6 |
2 files changed, 45 insertions, 45 deletions
diff --git a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp index 7c952726..87614806 100644 --- a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp +++ b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp @@ -20,39 +20,39 @@ #include <klineedit.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qgroupbox.h> -#include <qslider.h> -#include <qtabwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqgroupbox.h> +#include <tqslider.h> +#include <tqtabwidget.h> #include <kaboutdata.h> #include <knuminput.h> -#include <qregexp.h> -#include <qlabel.h> +#include <tqregexp.h> +#include <tqlabel.h> #include <audiocdencoder.h> #include "kcmaudiocd.moc" #include <kconfigdialogmanager.h> -KAudiocdModule::KAudiocdModule(QWidget *parent, const char *name) +KAudiocdModule::KAudiocdModule(TQWidget *parent, const char *name) : AudiocdConfig(parent, name), configChanged(false) { - QString foo = i18n("Report errors found on the cd."); + TQString foo = i18n("Report errors found on the cd."); setButtons(Default|Apply); config = new KConfig("kcmaudiocdrc"); - QPtrList<AudioCDEncoder> encoders; + TQPtrList<AudioCDEncoder> encoders; AudioCDEncoder::findAllPlugins(0, encoders); AudioCDEncoder *encoder; for ( encoder = encoders.first(); encoder; encoder = encoders.next() ){ if (encoder->init()) { KConfigSkeleton *config = NULL; - QWidget *widget = encoder->getConfigureWidget(&config); + TQWidget *widget = encoder->getConfigureWidget(&config); if(widget && config){ tabWidget->addTab(widget, i18n("%1 Encoder").arg(encoder->type())); - KConfigDialogManager *configManager = new KConfigDialogManager(widget, config, QString(encoder->type()+" EncoderConfigManager").latin1()); + KConfigDialogManager *configManager = new KConfigDialogManager(widget, config, TQString(encoder->type()+" EncoderConfigManager").latin1()); encoderSettings.append(configManager); } } @@ -62,25 +62,25 @@ KAudiocdModule::KAudiocdModule(QWidget *parent, const char *name) KConfigDialogManager *widget; for ( widget = encoderSettings.first(); widget; widget = encoderSettings.next() ){ - connect(widget, SIGNAL(widgetModified()), this, SLOT(slotModuleChanged())); + connect(widget, TQT_SIGNAL(widgetModified()), this, TQT_SLOT(slotModuleChanged())); } //CDDA Options - connect(cd_specify_device,SIGNAL(clicked()),this,SLOT(slotConfigChanged())); - connect(ec_enable_check,SIGNAL(clicked()),this,SLOT(slotEcEnable())); - connect(ec_skip_check,SIGNAL(clicked()),SLOT(slotConfigChanged())); - connect(cd_device_string,SIGNAL(textChanged(const QString &)),SLOT(slotConfigChanged())); - connect(niceLevel,SIGNAL(valueChanged(int)),SLOT(slotConfigChanged())); + connect(cd_specify_device,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotConfigChanged())); + connect(ec_enable_check,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotEcEnable())); + connect(ec_skip_check,TQT_SIGNAL(clicked()),TQT_SLOT(slotConfigChanged())); + connect(cd_device_string,TQT_SIGNAL(textChanged(const TQString &)),TQT_SLOT(slotConfigChanged())); + connect(niceLevel,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(slotConfigChanged())); // File Name - connect(fileNameLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotConfigChanged())); - connect(albumNameLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotConfigChanged())); - connect( kcfg_replaceInput, SIGNAL( textChanged(const QString&) ), this, SLOT( updateExample() ) ); - connect( kcfg_replaceOutput, SIGNAL( textChanged(const QString&) ), this, SLOT( updateExample() ) ); - connect( example, SIGNAL( textChanged(const QString&) ), this, SLOT( updateExample() ) ); - connect( kcfg_replaceInput, SIGNAL( textChanged(const QString&) ), this, SLOT( slotConfigChanged() ) ); - connect( kcfg_replaceOutput, SIGNAL( textChanged(const QString&) ), this, SLOT( slotConfigChanged() ) ); - connect( example, SIGNAL( textChanged(const QString&) ), this, SLOT( slotConfigChanged() ) ); + connect(fileNameLineEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotConfigChanged())); + connect(albumNameLineEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotConfigChanged())); + connect( kcfg_replaceInput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) ); + connect( kcfg_replaceOutput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) ); + connect( example, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) ); + connect( kcfg_replaceInput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) ); + connect( kcfg_replaceOutput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) ); + connect( example, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) ); KAboutData *about = new KAboutData(I18N_NOOP("kcmaudiocd"), I18N_NOOP("KDE Audio CD IO Slave"), @@ -97,10 +97,10 @@ KAudiocdModule::~KAudiocdModule() delete config; } -QString removeQoutes(const QString& text) +TQString removeQoutes(const TQString& text) { - QString deqoutedString=text; - QRegExp qoutedStringRegExp("^\".*\"$"); + TQString deqoutedString=text; + TQRegExp qoutedStringRegExp("^\".*\"$"); if (qoutedStringRegExp.exactMatch(text)) { deqoutedString=text.mid(1, text.length()-2); @@ -108,10 +108,10 @@ QString removeQoutes(const QString& text) return deqoutedString; } -bool needsQoutes(const QString& text) +bool needsQoutes(const TQString& text) { - QRegExp spaceAtTheBeginning("^\\s+.*$"); - QRegExp spaceAtTheEnd("^.*\\s+$"); + TQRegExp spaceAtTheBeginning("^\\s+.*$"); + TQRegExp spaceAtTheEnd("^.*\\s+$"); return (spaceAtTheBeginning.exactMatch(text) || spaceAtTheEnd.exactMatch(text)); @@ -119,11 +119,11 @@ bool needsQoutes(const QString& text) void KAudiocdModule::updateExample() { - QString text = example->text(); - QString deqoutedReplaceInput=removeQoutes(kcfg_replaceInput->text()); - QString deqoutedReplaceOutput=removeQoutes(kcfg_replaceOutput->text()); + TQString text = example->text(); + TQString deqoutedReplaceInput=removeQoutes(kcfg_replaceInput->text()); + TQString deqoutedReplaceOutput=removeQoutes(kcfg_replaceOutput->text()); - text.replace( QRegExp(deqoutedReplaceInput), deqoutedReplaceOutput ); + text.replace( TQRegExp(deqoutedReplaceInput), deqoutedReplaceOutput ); exampleOutput->setText(text); } @@ -154,15 +154,15 @@ void KAudiocdModule::save() { config->writeEntry("album_name_template", albumNameLineEdit->text()); config->writeEntry("regexp_example", example->text()); // save qouted if required - QString replaceInput=kcfg_replaceInput->text(); - QString replaceOutput=kcfg_replaceOutput->text(); + TQString replaceInput=kcfg_replaceInput->text(); + TQString replaceOutput=kcfg_replaceOutput->text(); if (needsQoutes(replaceInput)) { - replaceInput=QString("\"")+replaceInput+QString("\""); + replaceInput=TQString("\"")+replaceInput+TQString("\""); } if (needsQoutes(replaceOutput)) { - replaceOutput=QString("\"")+replaceOutput+QString("\""); + replaceOutput=TQString("\"")+replaceOutput+TQString("\""); } config->writeEntry("regexp_search", replaceInput); config->writeEntry("regexp_replace", replaceOutput); @@ -246,7 +246,7 @@ void KAudiocdModule::slotEcEnable() { slotConfigChanged(); } -QString KAudiocdModule::quickHelp() const +TQString KAudiocdModule::quickHelp() const { return i18n("<h1>Audio CDs</h1> The Audio CD IO-Slave enables you to easily" " create wav, MP3 or Ogg Vorbis files from your audio CD-ROMs or DVDs." @@ -259,7 +259,7 @@ QString KAudiocdModule::quickHelp() const extern "C" { - KCModule *create_audiocd(QWidget *parent, const char */*name*/) + KCModule *create_audiocd(TQWidget *parent, const char */*name*/) { return new KAudiocdModule(parent, "kcmaudiocd"); } diff --git a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h index c0d9a65e..4d51134d 100644 --- a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h +++ b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h @@ -35,10 +35,10 @@ class KAudiocdModule : public AudiocdConfig public: - KAudiocdModule(QWidget *parent=0, const char *name=0); + KAudiocdModule(TQWidget *parent=0, const char *name=0); ~KAudiocdModule(); - QString quickHelp() const; + TQString quickHelp() const; public slots: void defaults(); @@ -58,7 +58,7 @@ private: int getBitrateIndex(int value); - QPtrList<KConfigDialogManager> encoderSettings; + TQPtrList<KConfigDialogManager> encoderSettings; }; #endif // KAUDIOCDCONFIG_H |