diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 17:59:59 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 17:59:59 +0900 |
commit | 1ff71e7f0d34c481c99df654c927f208fc934a3c (patch) | |
tree | ad66f5219f90dde0e3b61e600ec9283f31976891 | |
parent | 9ca0bb40a279a799099f8d6b3cee70342b206ce2 (diff) | |
download | knights-master.tar.gz knights-master.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | knights/audio.cpp | 6 | ||||
-rw-r--r-- | knights/resource.cpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/knights/audio.cpp b/knights/audio.cpp index 0b46eab..1a6aa79 100644 --- a/knights/audio.cpp +++ b/knights/audio.cpp @@ -20,7 +20,7 @@ #include <arts/dispatcher.h> #include <arts/flowsystem.h> #include <arts/connect.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <tdeio/netaccess.h> #include <tqptrlist.h> #include <tqfile.h> @@ -105,7 +105,7 @@ void audio::play( const int snd ) void audio::setTheme( const TQString &newTheme ) { TQString configFile; - KSimpleConfig *themeConfig; + TDESimpleConfig *themeConfig; if( !enabled || !a->enabled ) return; @@ -118,7 +118,7 @@ void audio::setTheme( const TQString &newTheme ) kdWarning() << "audio::setTheme: Can not access theme.conf from " << newTheme << endl; return; } - themeConfig = new KSimpleConfig( configFile, true ); + themeConfig = new TDESimpleConfig( configFile, true ); /* Read the details about this theme */ themeConfig->setGroup( "General" ); diff --git a/knights/resource.cpp b/knights/resource.cpp index 0d4da88..680a4d4 100644 --- a/knights/resource.cpp +++ b/knights/resource.cpp @@ -17,7 +17,7 @@ /* KDE */ #include <tdestandarddirs.h> #include <tdeglobalsettings.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <tdeconfig.h> #include <kiconloader.h> #include <kmdcodec.h> @@ -625,8 +625,8 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex ) TQString chessmenURL; TQString boardConf; TQString chessmenConf; - KSimpleConfig *boardConfig; - KSimpleConfig *chessmenConfig; + TDESimpleConfig *boardConfig; + TDESimpleConfig *chessmenConfig; /* Make sure the Indexes are valid */ if( BoardIndex > (signed)Boards.count() ) @@ -661,11 +661,11 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex ) /* load the theme.conf files */ if( !TDEIO::NetAccess::download( boardURL + "theme.conf", boardConf ) ) kdWarning() << "Can not read theme.conf from " << boardURL << endl; - boardConfig = new KSimpleConfig( boardConf, true ); + boardConfig = new TDESimpleConfig( boardConf, true ); if( !TDEIO::NetAccess::download( chessmenURL + "theme.conf", chessmenConf ) ) kdWarning() << "Can not read theme.conf from " << chessmenURL << endl; - chessmenConfig = new KSimpleConfig( chessmenConf, true ); + chessmenConfig = new TDESimpleConfig( chessmenConf, true ); /* Read the headers */ boardConfig->setGroup( "General" ); |