diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/scanfolder/scanfolderprefpagewidget.cpp | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip |
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/scanfolder/scanfolderprefpagewidget.cpp')
-rw-r--r-- | plugins/scanfolder/scanfolderprefpagewidget.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/scanfolder/scanfolderprefpagewidget.cpp b/plugins/scanfolder/scanfolderprefpagewidget.cpp index b577a88..b1a6125 100644 --- a/plugins/scanfolder/scanfolderprefpagewidget.cpp +++ b/plugins/scanfolder/scanfolderprefpagewidget.cpp @@ -20,10 +20,10 @@ #include "scanfolderprefpagewidget.h" #include "scanfolderpluginsettings.h" -#include <qwidget.h> -#include <qstring.h> -#include <qcheckbox.h> -#include <qfile.h> +#include <tqwidget.h> +#include <tqstring.h> +#include <tqcheckbox.h> +#include <tqfile.h> #include <kglobal.h> #include <klocale.h> @@ -32,8 +32,8 @@ namespace kt { - ScanFolderPrefPageWidget::ScanFolderPrefPageWidget(QWidget *parent, const char *name) - :SfPrefPageWidgetBase(parent, name) + ScanFolderPrefPageWidget::ScanFolderPrefPageWidget(TQWidget *tqparent, const char *name) + :SfPrefPageWidgetBase(tqparent, name) { use1->setChecked(ScanFolderPluginSettings::useFolder1()); use2->setChecked(ScanFolderPluginSettings::useFolder2()); @@ -58,9 +58,9 @@ namespace kt bool usesf2 = use2->isChecked(); bool usesf3 = use3->isChecked(); - QString sfPath1 = url1->url(); - QString sfPath2 = url2->url(); - QString sfPath3 = url3->url(); + TQString sfPath1 = url1->url(); + TQString sfPath2 = url2->url(); + TQString sfPath3 = url3->url(); bool silently = openSilently->isChecked(); bool deleteChecked = deleteCheck->isChecked(); @@ -70,26 +70,26 @@ namespace kt ScanFolderPluginSettings::setActionDelete(deleteChecked); ScanFolderPluginSettings::setActionMove(moveChecked); - QString message = i18n( "ScanFolder - Folder %1: Invalid URL or folder does not exist. Please, choose a valid directory." ); - if(!QFile::exists(sfPath1) && usesf1) + TQString message = i18n( "ScanFolder - Folder %1: Invalid URL or folder does not exist. Please, choose a valid directory." ); + if(!TQFile::exists(sfPath1) && usesf1) { - KMessageBox::sorry(0, message.arg( 1 ) ); + KMessageBox::sorry(0, message.tqarg( 1 ) ); usesf1 = false; } else ScanFolderPluginSettings::setFolder1(sfPath1); - if(!QFile::exists(sfPath2) && usesf2) + if(!TQFile::exists(sfPath2) && usesf2) { - KMessageBox::sorry(0, message.arg( 2 ) ); + KMessageBox::sorry(0, message.tqarg( 2 ) ); usesf2 = false; } else ScanFolderPluginSettings::setFolder2(sfPath2); - if(!QFile::exists(sfPath3) && usesf3) + if(!TQFile::exists(sfPath3) && usesf3) { - KMessageBox::sorry(0, message.arg( 3 ) ); + KMessageBox::sorry(0, message.tqarg( 3 ) ); usesf3 = false; } else |