From 41b2bdea7288a735d9e3e1313b9c95fc91c36bec Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Mon, 9 Mar 2026 16:58:57 +0900
Subject: Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 src/apps/ktorrent/ktorrent.cpp | 23 +++--------------------
 1 file 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()
-- 
cgit v1.2.3

