summaryrefslogtreecommitdiffstats
path: root/client/config/themes.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-06-26 16:07:50 +0300
committerMavridis Philippe <[email protected]>2021-06-26 16:35:30 +0300
commited38fe03463d5de3c7b0ebd4034ad93eabdd2fde (patch)
tree87a9c58300ae14cd987015b3f7506c65b03715d5 /client/config/themes.cpp
parent2bc11f9dc783f26bf99f44515e92e49e8d2348fc (diff)
downloadtwin-style-dekorator-ed38fe03463d5de3c7b0ebd4034ad93eabdd2fde.tar.gz
twin-style-dekorator-ed38fe03463d5de3c7b0ebd4034ad93eabdd2fde.zip
Conversion KDE3→TDE
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'client/config/themes.cpp')
-rw-r--r--client/config/themes.cpp28
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();
}