diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
commit | 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch) | |
tree | 6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/configdialog.cpp | |
parent | 6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff) | |
download | soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip |
TQt4 port soundkonverter
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/configdialog.cpp')
-rwxr-xr-x | src/configdialog.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp index 3e58007..789d59c 100755 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -18,20 +18,20 @@ #include "backend_plugins.h" #include "replaygain_plugins.h" -#include <qlayout.h> +#include <tqlayout.h> */ //#include <kconfig.h> #include <kiconloader.h> #include <klocale.h> #include <kpushbutton.h> -ConfigDialog::ConfigDialog( Config* _config, QWidget *parent, const char *name, Page startPage ) +ConfigDialog::ConfigDialog( Config* _config, TQWidget *tqparent, const char *name, Page startPage ) : KDialogBase( IconList, i18n("Settings"), Apply | Cancel | Default | Help | Ok, Ok, // default button - parent, + tqparent, name, true, // modal true // separator @@ -43,65 +43,65 @@ ConfigDialog::ConfigDialog( Config* _config, QWidget *parent, const char *name, binaries = config->binaries; - connect( this, SIGNAL(applyClicked()), - this,SLOT(applyClickedSlot()) + connect( this, TQT_SIGNAL(applyClicked()), + this,TQT_SLOT(applyClickedSlot()) ); - connect( this, SIGNAL(okClicked()), - this,SLOT(okClickedSlot()) + connect( this, TQT_SIGNAL(okClicked()), + this,TQT_SLOT(okClickedSlot()) ); - connect( this, SIGNAL(defaultClicked()), - this,SLOT(defaultClickedSlot()) + connect( this, TQT_SIGNAL(defaultClicked()), + this,TQT_SLOT(defaultClickedSlot()) ); generalPage = addPage( i18n("General"), "misc" ); configGeneralPage = new ConfigGeneralPage( config, generalPage, "configGeneralPage" ); - connect( configGeneralPage, SIGNAL(configChanged()), - this, SLOT(configChanged()) + connect( configGeneralPage, TQT_SIGNAL(configChanged()), + this, TQT_SLOT(configChanged()) ); - connect( this, SIGNAL(saveGeneral()), - configGeneralPage, SLOT(saveSettings()) + connect( this, TQT_SIGNAL(saveGeneral()), + configGeneralPage, TQT_SLOT(saveSettings()) ); - connect( this, SIGNAL(resetGeneral()), - configGeneralPage, SLOT(resetDefaults()) + connect( this, TQT_SIGNAL(resetGeneral()), + configGeneralPage, TQT_SLOT(resetDefaults()) ); pluginsPage = addPage( i18n("Plugins"), "connect_creating" ); configPluginsPage = new ConfigPluginsPage( config, pluginsPage, "configPluginsPage" ); - connect( configPluginsPage, SIGNAL(configChanged()), - this, SLOT(configChanged()) + connect( configPluginsPage, TQT_SIGNAL(configChanged()), + this, TQT_SLOT(configChanged()) ); - connect( this, SIGNAL(savePlugins()), - configPluginsPage, SLOT(saveSettings()) + connect( this, TQT_SIGNAL(savePlugins()), + configPluginsPage, TQT_SLOT(saveSettings()) ); - connect( this, SIGNAL(resetPlugins()), - configPluginsPage, SLOT(resetDefaults()) + connect( this, TQT_SIGNAL(resetPlugins()), + configPluginsPage, TQT_SLOT(resetDefaults()) ); - environmentPage = addPage( i18n("Environment"), "filefind" ); + environmentPage = addPage( i18n("Environment"), "filetqfind" ); configEnvironmentPage = new ConfigEnvironmentPage( config, &binaries, environmentPage, "configEnvironmentPage" ); - connect( configEnvironmentPage, SIGNAL(configChanged()), - this, SLOT(configChanged()) + connect( configEnvironmentPage, TQT_SIGNAL(configChanged()), + this, TQT_SLOT(configChanged()) ); - connect( this, SIGNAL(saveEnvironment()), - configEnvironmentPage, SLOT(saveSettings()) + connect( this, TQT_SIGNAL(saveEnvironment()), + configEnvironmentPage, TQT_SLOT(saveSettings()) ); - connect( this, SIGNAL(resetEnvironment()), - configEnvironmentPage, SLOT(resetDefaults()) + connect( this, TQT_SIGNAL(resetEnvironment()), + configEnvironmentPage, TQT_SLOT(resetDefaults()) ); backendsPage = addPage( i18n("Backends"), "kcmsystem" ); configBackendsPage = new ConfigBackendsPage( config, &binaries, backendsPage, "configBackendsPage" ); - connect( configBackendsPage, SIGNAL(configChanged()), - this, SLOT(configChanged()) + connect( configBackendsPage, TQT_SIGNAL(configChanged()), + this, TQT_SLOT(configChanged()) ); - connect( this, SIGNAL(saveBackends()), - configBackendsPage, SLOT(saveSettings()) + connect( this, TQT_SIGNAL(saveBackends()), + configBackendsPage, TQT_SLOT(saveSettings()) ); - connect( this, SIGNAL(resetBackends()), - configBackendsPage, SLOT(resetDefaults()) + connect( this, TQT_SIGNAL(resetBackends()), + configBackendsPage, TQT_SLOT(resetDefaults()) ); - connect( configEnvironmentPage, SIGNAL(rebuildBackendsPage()), - configBackendsPage, SLOT(rebuild()) + connect( configEnvironmentPage, TQT_SIGNAL(rebuildBackendsPage()), + configBackendsPage, TQT_SLOT(rebuild()) ); setConfigChanged( false ); @@ -113,9 +113,9 @@ ConfigDialog::~ConfigDialog() { } -QFrame *ConfigDialog::addPage(const QString &itemName, const QString &iconName) +TQFrame *ConfigDialog::addPage(const TQString &itemName, const TQString &iconName) { - return KDialogBase::addPage( itemName, QString::null, MainBarIcon(iconName,32) ); + return KDialogBase::addPage( itemName, TQString(), MainBarIcon(iconName,32) ); } void ConfigDialog::setConfigChanged( const bool value ) @@ -146,7 +146,7 @@ void ConfigDialog::okClickedSlot() void ConfigDialog::defaultClickedSlot() { int index = activePageIndex(); - QStringList listDefaults; + TQStringList listDefaults; if( index == -1 ) return; |