From 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 23:15:51 +0000 Subject: 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 --- src/optionsrequester.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/optionsrequester.cpp') 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 -#include -#include +#include +#include +#include #include #include #include -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 ); } -- cgit v1.2.1