diff options
Diffstat (limited to 'client/config/themes.cpp')
-rw-r--r-- | client/config/themes.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/client/config/themes.cpp b/client/config/themes.cpp index 4820954..0033f1b 100644 --- a/client/config/themes.cpp +++ b/client/config/themes.cpp @@ -42,22 +42,22 @@ #include <tqpushbutton.h> #include <kdebug.h> -#include <kapplication.h> +#include <tdeapplication.h> #include <kstandarddirs.h> #include <kservice.h> -#include <klocale.h> +#include <tdelocale.h> #include <ksimpleconfig.h> #undef Unsorted #include <kipc.h> -#include <klistview.h> +#include <tdelistview.h> #include <kurlrequesterdlg.h> -#include <kmessagebox.h> +#include <tdemessagebox.h> #include <kprogress.h> #include <kiconloader.h> -#include <kio/job.h> -#include <kio/netaccess.h> +#include <tdeio/job.h> +#include <tdeio/netaccess.h> #include <ktar.h> #ifdef HAVE_LIBART @@ -77,7 +77,7 @@ // ---------- // -IconThemesConfig::IconThemesConfig( TQWidget *parent, KListView *themesView /*, TQPushButton *removethemeBtn*/ ) +IconThemesConfig::IconThemesConfig( TQWidget *parent, TDEListView *themesView /*, TQPushButton *removethemeBtn*/ ) { parent_ = parent; themesView_ = themesView; @@ -128,15 +128,15 @@ void IconThemesConfig::loadThemes() if ( ! TQDir( TQDir::homeDirPath() + "/.kde/share/apps/" ).exists( "deKorator" ) ) { tqWarning( "no dirs, will make them..." ); - KIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/" ); - KIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" ); + TDEIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/" ); + TDEIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" ); } else { tqWarning( "exist" ); } - themesDirs = KGlobal::dirs() ->findDirs( "data", "deKorator/themes" ) ; + themesDirs = TDEGlobal::dirs() ->findDirs( "data", "deKorator/themes" ) ; for ( it = themesDirs.begin(); it != themesDirs.end(); ++it ) { @@ -174,7 +174,7 @@ void IconThemesConfig::installNewTheme() // themeTmpFile contains the name of the downloaded file TQString themeTmpFile; - if ( !KIO::NetAccess::download( themeURL, themeTmpFile, parent_ ) ) + if ( !TDEIO::NetAccess::download( themeURL, themeTmpFile, parent_ ) ) { TQString sorryText; if ( themeURL.isLocalFile() ) @@ -193,7 +193,7 @@ void IconThemesConfig::installNewTheme() TQString invalidArch( i18n( "The file is not a valid deKorator theme archive." ) ); KMessageBox::error( parent_, invalidArch ); - KIO::NetAccess::removeTempFile( themeTmpFile ); + TDEIO::NetAccess::removeTempFile( themeTmpFile ); return ; } @@ -207,7 +207,7 @@ void IconThemesConfig::installNewTheme() KMessageBox::error( parent_, somethingWrong ); } - KIO::NetAccess::removeTempFile( themeTmpFile ); + TDEIO::NetAccess::removeTempFile( themeTmpFile ); loadThemes(); @@ -341,7 +341,7 @@ void IconThemesConfig::removeSelectedTheme() TQDir dir = TQDir( deldirStr ); dir.rename( deldirStr, deldirStr + "del" ); - KIO::del( KURL( deldirStr + "del" ) ); + TDEIO::del( KURL( deldirStr + "del" ) ); loadThemes(); } |