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/optionsrequester.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/optionsrequester.cpp')
-rwxr-xr-x | src/optionsrequester.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/optionsrequester.cpp b/src/optionsrequester.cpp index 3fc90b4..4592899 100755 --- a/src/optionsrequester.cpp +++ b/src/optionsrequester.cpp @@ -3,17 +3,17 @@ #include "options.h" #include "config.h" -#include <qlayout.h> -#include <qlabel.h> -#include <qstringlist.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqstringlist.h> #include <klocale.h> #include <kpushbutton.h> #include <kiconloader.h> -OptionsRequester::OptionsRequester( Config* config, QStringList list, QWidget *parent, const char *name, bool modal, WFlags f ) - : KDialog( parent, name, modal, f ) +OptionsRequester::OptionsRequester( Config* config, TQStringList list, TQWidget *tqparent, const char *name, bool modal, WFlags f ) + : KDialog( tqparent, name, modal, f ) { setCaption( i18n("Choose output options") ); @@ -23,24 +23,24 @@ OptionsRequester::OptionsRequester( Config* config, QStringList list, QWidget *p // create an icon loader object for loading icons KIconLoader* iconLoader = new KIconLoader(); - QGridLayout *grid = new QGridLayout( this, 2, 1, 11, 6 ); + TQGridLayout *grid = new TQGridLayout( this, 2, 1, 11, 6 ); options = new Options( config, i18n("Click on \"Ok\" to add the files to the list in the main window!"), this, "options" ); grid->addWidget( options, 0, 0 ); - QStringList::Iterator it = files.begin(); + TQStringList::Iterator it = files.begin(); while( it != files.end() ) { - QString sFormat = *it; - int i = sFormat.findRev( '.' ); + TQString sFormat = *it; + int i = sFormat.tqfindRev( '.' ); sFormat.remove( 0, i + 1 ); sFormat.lower(); if( sFormat == "wav" ) // FIXME use mime types { - QHBoxLayout *warningBox = new QHBoxLayout(); + TQHBoxLayout *warningBox = new TQHBoxLayout(); grid->addLayout( warningBox, 1, 0 ); - QLabel* lWarning = new QLabel( i18n("Warning: If you select \"wav\" as output format, your wav files will not be added to the list."), this, "lWarning" ); + TQLabel* lWarning = new TQLabel( i18n("Warning: If you select \"wav\" as output format, your wav files will not be added to the list."), this, "lWarning" ); warningBox->addWidget( lWarning ); row++; break; @@ -48,7 +48,7 @@ OptionsRequester::OptionsRequester( Config* config, QStringList list, QWidget *p it++; } - QHBoxLayout* buttonBox = new QHBoxLayout(); + TQHBoxLayout* buttonBox = new TQHBoxLayout(); grid->addLayout( buttonBox, row, 0 ); buttonBox->addStretch(); @@ -59,11 +59,11 @@ OptionsRequester::OptionsRequester( Config* config, QStringList list, QWidget *p pOk = new KPushButton( iconLoader->loadIcon("apply",KIcon::Small), i18n("Ok"), this, "pOk" ); buttonBox->addWidget( pOk ); - connect( pCancel, SIGNAL(clicked()), - this, SLOT(reject()) + connect( pCancel, TQT_SIGNAL(clicked()), + this, TQT_SLOT(reject()) ); - connect( pOk, SIGNAL(clicked()), - this, SLOT(okClicked()) + connect( pOk, TQT_SIGNAL(clicked()), + this, TQT_SLOT(okClicked()) ); // delete the icon loader object @@ -80,17 +80,17 @@ void OptionsRequester::okClicked() accept(); } -void OptionsRequester::setProfile( const QString& profile ) +void OptionsRequester::setProfile( const TQString& profile ) { options->setProfile( profile ); } -void OptionsRequester::setFormat( const QString& format ) +void OptionsRequester::setFormat( const TQString& format ) { options->setFormat( format ); } -void OptionsRequester::setOutputDirectory( const QString& directory ) +void OptionsRequester::setOutputDirectory( const TQString& directory ) { options->setOutputDirectory( directory ); } |