diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-20 06:53:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-20 06:53:52 +0000 |
commit | 3a09386ad170dafdce88c5dcd70275cc7d4081e9 (patch) | |
tree | 0f9544da38cdb9c5cc20ad9d695588413b4cd5f9 /amarok/src/Options2.ui.h | |
parent | 36a9c1916513474b11c59a9060cbaf8770d1bbc0 (diff) | |
download | amarok-3a09386ad170dafdce88c5dcd70275cc7d4081e9.tar.gz amarok-3a09386ad170dafdce88c5dcd70275cc7d4081e9.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1165727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/Options2.ui.h')
-rw-r--r-- | amarok/src/Options2.ui.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/amarok/src/Options2.ui.h b/amarok/src/Options2.ui.h index e3f0a54f..5601daff 100644 --- a/amarok/src/Options2.ui.h +++ b/amarok/src/Options2.ui.h @@ -26,9 +26,9 @@ #include <ktar.h> #include <kio/netaccess.h> -#include <qdir.h> -#include <qfileinfo.h> -#include <qtimer.h> +#include <tqdir.h> +#include <tqfileinfo.h> +#include <tqtimer.h> //////////////////////////////////////////////////////////////////////////////// @@ -41,11 +41,11 @@ class AmarokThemeNewStuff : public KNewStuff { public: - AmarokThemeNewStuff(const QString &type, QWidget *parentWidget=0) + AmarokThemeNewStuff(const TQString &type, TQWidget *parentWidget=0) : KNewStuff( type, parentWidget ) {} - bool install( const QString& fileName ) + bool install( const TQString& fileName ) { KTar archive( fileName ); @@ -54,7 +54,7 @@ class AmarokThemeNewStuff : public KNewStuff return false; } - const QString destination = Amarok::saveLocation( "themes/" ); + const TQString destination = Amarok::saveLocation( "themes/" ); debug() << "copying to " << destination << endl; const KArchiveDirectory* archiveDir = archive.directory(); archiveDir->copyTo( destination, true ); @@ -62,7 +62,7 @@ class AmarokThemeNewStuff : public KNewStuff return true; } - virtual bool createUploadFile( const QString& ) { return false; } + virtual bool createUploadFile( const TQString& ) { return false; } }; @@ -80,7 +80,7 @@ void Options2::init() // This method is basically lifted from ScriptManager::slotInstallScript() void Options2::installPushButton_clicked() { - KFileDialog dia( QString::null, "*.tar *.tar.bz2 *.tar.gz|" + i18n( "Style Packages (*.tar, *.tar.bz2, *.tar.gz)" ), 0, 0, true ); + KFileDialog dia( TQString::null, "*.tar *.tar.bz2 *.tar.gz|" + i18n( "Style Packages (*.tar, *.tar.bz2, *.tar.gz)" ), 0, 0, true ); kapp->setTopWidget( &dia ); dia.setCaption( kapp->makeStdCaption( i18n( "Select Style Package" ) ) ); dia.setMode( KFile::File | KFile::ExistingOnly ); @@ -93,7 +93,7 @@ void Options2::installPushButton_clicked() return; } - const QString destination = Amarok::saveLocation( "themes/" ); + const TQString destination = Amarok::saveLocation( "themes/" ); debug() << "copying to " << destination << endl; const KArchiveDirectory* archiveDir = archive.directory(); archiveDir->copyTo( destination, true ); @@ -117,21 +117,21 @@ void Options2::retrievePushButton_clicked() d->setType( "amarok/theme" ); // you have to do this by hand when providing your own Engine KNS::ProviderLoader *p = new KNS::ProviderLoader( this ); - connect( p, SIGNAL( providersLoaded(Provider::List*) ), d, SLOT( slotProviders(Provider::List *) ) ); + connect( p, TQT_SIGNAL( providersLoaded(Provider::List*) ), d, TQT_SLOT( slotProviders(Provider::List *) ) ); p->load( "amarok/theme", "http://amarok.kde.org/knewstuff/amarokthemes-providers.xml" ); - connect( d, SIGNAL( finished() ), d, SLOT( delayedDestruct() ) ); - connect( d, SIGNAL( finished() ), this, SLOT( updateStyleComboBox() ) ); + connect( d, TQT_SIGNAL( finished() ), d, TQT_SLOT( delayedDestruct() ) ); + connect( d, TQT_SIGNAL( finished() ), this, TQT_SLOT( updateStyleComboBox() ) ); // Due to kdelibs idiocy, KNS::DownloadDialog is /always/ non-modal. So we have to // ensure that closing the settings dialog before the DownloadDialog doesn't crash. - QTimer::singleShot( 0, d, SLOT( exec() ) ); + TQTimer::singleShot( 0, d, TQT_SLOT( exec() ) ); } void Options2::uninstallPushButton_clicked() { - const QString name = styleComboBox->currentText(); + const TQString name = styleComboBox->currentText(); if ( name == "Default" ) return; @@ -160,10 +160,10 @@ void Options2::uninstallPushButton_clicked() } -void Options2::styleComboBox_activated(const QString& s) +void Options2::styleComboBox_activated(const TQString& s) { bool disable = false; - QDir dir( Amarok::saveLocation( "themes/" ) + s ); + TQDir dir( Amarok::saveLocation( "themes/" ) + s ); if( !dir.exists() ) disable = true; @@ -177,9 +177,9 @@ void Options2::updateStyleComboBox() styleComboBox->clear(); - const QStringList styleList = kapp->dirs()->findAllResources("data","amarok/themes/*/stylesheet.css", false); - QStringList sortedList; - foreach (styleList) sortedList.append(QFileInfo( *it ).dir().dirName()); + const TQStringList styleList = kapp->dirs()->findAllResources("data","amarok/themes/*/stylesheet.css", false); + TQStringList sortedList; + foreach (styleList) sortedList.append(TQFileInfo( *it ).dir().dirName()); sortedList.append( "Default" ); sortedList.sort(); foreach(sortedList) styleComboBox->insertItem(*it); |