summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-03-09 16:58:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-03-09 16:58:57 +0900
commit41b2bdea7288a735d9e3e1313b9c95fc91c36bec (patch)
treef212c6f9fbabbbb44808f97851f280b2460443e8
parentab6e88344b20205edd814c626ab3901b9cb8363c (diff)
downloadktorrent-remove/tde-version.tar.gz
ktorrent-remove/tde-version.zip
Remove use of TDE_VERSIONremove/tde-version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/apps/ktorrent/ktorrent.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/apps/ktorrent/ktorrent.cpp b/src/apps/ktorrent/ktorrent.cpp
index 432d481..f77859b 100644
--- a/src/apps/ktorrent/ktorrent.cpp
+++ b/src/apps/ktorrent/ktorrent.cpp
@@ -32,7 +32,6 @@
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <kiconloader.h>
-#include <tdeversion.h>
#include <tdemenubar.h>
#include <kstatusbar.h>
#include <kkeydialog.h>
@@ -710,18 +709,10 @@ void KTorrent::optionsConfigureKeys()
void KTorrent::optionsConfigureToolbars()
{
// use the standard toolbar editor
-#if defined(TDE_MAKE_VERSION)
-# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
-# else
- saveMainWindowSettings(TDEGlobal::config());
-# endif
-#else
- saveMainWindowSettings(TDEGlobal::config());
-#endif
- KEditToolbar dlg(factory());
- connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig()));
- dlg.exec();
+ KEditToolbar dlg(factory());
+ connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig()));
+ dlg.exec();
}
void KTorrent::newToolbarConfig()
@@ -730,15 +721,7 @@ void KTorrent::newToolbarConfig()
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI(0);
-#if defined(TDE_MAKE_VERSION)
-# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
-# else
- applyMainWindowSettings(TDEGlobal::config());
-# endif
-#else
- applyMainWindowSettings(TDEGlobal::config());
-#endif
}
void KTorrent::optionsPreferences()