diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-06-25 19:06:28 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-06-25 19:15:54 +0300 |
commit | 9523b86a5b99317135eb3dcdb7d10199361eab97 (patch) | |
tree | f14a290de015a0a199336df095271fce158bb41a /src/config/config.cpp | |
parent | a26e231b46ac6433f6500ddc9ed6b466cf38cc21 (diff) | |
download | twin-style-suse2-9523b86a5b99317135eb3dcdb7d10199361eab97.tar.gz twin-style-suse2-9523b86a5b99317135eb3dcdb7d10199361eab97.zip |
Conversion KDE3→TDE
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/config/config.cpp')
-rw-r--r-- | src/config/config.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/config/config.cpp b/src/config/config.cpp index 7ff53f7..d0a72bf 100644 --- a/src/config/config.cpp +++ b/src/config/config.cpp @@ -35,29 +35,29 @@ #include <tqlabel.h> #include <tqcombobox.h> -#include <kdeversion.h> -#include <kconfig.h> -#include <klocale.h> -#include <kglobal.h> +#include <tdeversion.h> +#include <tdeconfig.h> +#include <tdelocale.h> +#include <tdeglobal.h> #include <kurlrequester.h> #include <kstandarddirs.h> #include <kurl.h> -#include <kfiledialog.h> +#include <tdefiledialog.h> #include <knuminput.h> -#include <kfileitem.h> +#include <tdefileitem.h> #include <kcolorbutton.h> #include "config.h" #include "configdialog.h" -SUSE2Config::SUSE2Config(KConfig *config, TQWidget *parent) +SUSE2Config::SUSE2Config(TDEConfig *config, TQWidget *parent) : TQObject(parent), m_config(0), m_dialog(0) { m_parent = parent; // create the configuration object - m_config = new KConfig("kwinSUSE2rc"); - KGlobal::locale()->insertCatalogue("kwin_clients"); - KGlobal::locale()->insertCatalogue("kwin_SUSE2"); + m_config = new TDEConfig("twinSUSE2rc"); + TDEGlobal::locale()->insertCatalogue("twin_clients"); + TDEGlobal::locale()->insertCatalogue("twin_SUSE2"); // create and show the configuration dialog m_dialog = new ConfigDialog(parent); @@ -102,7 +102,7 @@ SUSE2Config::~SUSE2Config() if (m_config) delete m_config; } -void SUSE2Config::load(KConfig *) +void SUSE2Config::load(TDEConfig *) { m_config->setGroup("General"); @@ -172,14 +172,14 @@ void SUSE2Config::load(KConfig *) int titleBarLogoOffset = m_config->readNumEntry("TitleBarLogoOffset", 3); m_dialog->titleBarLogoOffset->setValue(titleBarLogoOffset); - TQString titleBarImage = locate("data", "kwin/pics/titlebar_decor.png"); + TQString titleBarImage = locate("data", "twin/pics/titlebar_decor.png"); titlebarLogoURL = m_config->readEntry("TitleBarLogoURL", titleBarImage); TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL); m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin))); } -void SUSE2Config::save(KConfig *) const +void SUSE2Config::save(TDEConfig *) const { m_config->setGroup("General"); @@ -237,7 +237,7 @@ void SUSE2Config::defaults() m_dialog->titleBarLogo->setChecked(false); m_dialog->titleBarLogoOffset->setValue(3); - titlebarLogoURL = locate("data", "kwin/pics/titlebar_decor.png"); + titlebarLogoURL = locate("data", "twin/pics/titlebar_decor.png"); TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL); m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin))); } @@ -274,7 +274,7 @@ void SUSE2Config::selectImage() extern "C" { - KDE_EXPORT TQObject *allocate_config(KConfig *config, TQWidget *parent) { + KDE_EXPORT TQObject *allocate_config(TDEConfig *config, TQWidget *parent) { return (new SUSE2Config(config, parent)); } } |