From ed38fe03463d5de3c7b0ebd4034ad93eabdd2fde Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 26 Jun 2021 16:07:50 +0300 Subject: =?UTF-8?q?Conversion=20KDE3=E2=86=92TDE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mavridis Philippe --- client/config/themes.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'client/config/themes.cpp') 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 #include -#include +#include #include #include -#include +#include #include #undef Unsorted #include -#include +#include #include -#include +#include #include #include -#include -#include +#include +#include #include #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(); } -- cgit v1.2.1