From f1813227cade0bda608db8f74344ca5b4260d4af Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Sat, 21 Mar 2026 15:00:12 +0900
Subject: Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 kbruch/src/mainqtwidget.cpp       | 6 ------
 kig/misc/common.h                 | 1 -
 kiten/kiten.cpp                   | 5 +----
 kstars/kstars/ksnewstuff.h        | 2 --
 kstars/kstars/kstarsactions.cpp   | 1 -
 kstars/kstars/kstarsinit.cpp      | 1 -
 kstars/kstars/thumbnailpicker.cpp | 1 -
 7 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/kbruch/src/mainqtwidget.cpp b/kbruch/src/mainqtwidget.cpp
index 3c44c4bf..ace772f5 100644
--- a/kbruch/src/mainqtwidget.cpp
+++ b/kbruch/src/mainqtwidget.cpp
@@ -107,10 +107,6 @@ MainQtWidget::MainQtWidget()
 	TQObject::connect(m_exerciseFactorize, TQ_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQ_SLOT(addCorrect()));
 	TQObject::connect(m_exerciseFactorize, TQ_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQ_SLOT(addWrong()));
 
-#if (TDE_VERSION_MINOR>=3) && (TDE_VERSION_MAJOR>=3)
-#else
-	resize(TQSize(TQMAX(toolBar()->sizeHint().width(), sizeHint().width()), sizeHint().height()));
-#endif
 	// now show the last exercise
 	m_exercises->showPage(SettingsClass::activeExercise());
 	slotAboutToShowPage(m_exercises->pageWidget(m_exercises->activePageIndex()));
@@ -241,12 +237,10 @@ void MainQtWidget::setupActions()
 	// now connect the ComboBox's signal textChanged() to the slot function
 	TQObject::connect(m_OperationBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(OperationBoxSlot()));
 	
-#if (TDE_VERSION_MINOR>=3) && (TDE_VERSION_MAJOR>=3)
 	if (!initialGeometrySet())
 		resize( TQSize(725, 330).expandedTo(minimumSizeHint()));
 	setupGUI(ToolBar | Keys | StatusBar | Create);
 	setAutoSaveSettings();
-#endif
 }
 
 
diff --git a/kig/misc/common.h b/kig/misc/common.h
index 8581326b..92c8a022 100644
--- a/kig/misc/common.h
+++ b/kig/misc/common.h
@@ -26,7 +26,6 @@
 #include "rect.h"
 
 #include <tqrect.h>
-#include <tdeversion.h>
 
 #include <vector>
 #include <assert.h>
diff --git a/kiten/kiten.cpp b/kiten/kiten.cpp
index 8b3371eb..df4e168c 100644
--- a/kiten/kiten.cpp
+++ b/kiten/kiten.cpp
@@ -24,7 +24,6 @@
 #include <tdeconfig.h>
 #include <tdeconfigdialog.h>
 #include <kdebug.h>
-#include <tdeversion.h>
 #include <kedittoolbar.h>
 #include <tdeglobalaccel.h>
 #include <kiconloader.h>
@@ -48,9 +47,7 @@
 
 TopLevel::TopLevel(TQWidget *parent, const char *name) : TDEMainWindow(parent, name)
 {
-#if TDE_VERSION > 305
-	    setStandardToolBarMenuEnabled(true);
-#endif
+	setStandardToolBarMenuEnabled(true);
 
 	config = Config::self();
 	config->readConfig();
diff --git a/kstars/kstars/ksnewstuff.h b/kstars/kstars/ksnewstuff.h
index 71a506cd..2d85af1b 100644
--- a/kstars/kstars/ksnewstuff.h
+++ b/kstars/kstars/ksnewstuff.h
@@ -30,8 +30,6 @@
 #ifndef KSNEWSTUFF_H
 #define KSNEWSTUFF_H
 
-#include <tdeversion.h>
-
 #include <tdelocale.h>
 #include <kdebug.h>
 #include <tqobject.h>
diff --git a/kstars/kstars/kstarsactions.cpp b/kstars/kstars/kstarsactions.cpp
index aaa3a569..ece09153 100644
--- a/kstars/kstars/kstarsactions.cpp
+++ b/kstars/kstars/kstarsactions.cpp
@@ -37,7 +37,6 @@
 #include <tdeprocess.h>
 #include <tqcheckbox.h>
 #include <tqdir.h>
-#include <tdeversion.h>
 //FIXME GLSOSSARY (uncomment these when content is added)
 //#include <libtdeedu/tdeeduui/tdeeduglossary.h>
 
diff --git a/kstars/kstars/kstarsinit.cpp b/kstars/kstars/kstarsinit.cpp
index cf5ec4b5..5209b941 100644
--- a/kstars/kstars/kstarsinit.cpp
+++ b/kstars/kstars/kstarsinit.cpp
@@ -26,7 +26,6 @@
 #include <ktip.h>
 #include <tdemessagebox.h>
 #include <tdestandarddirs.h>
-#include <tdeversion.h>
 
 #include "Options.h"
 #include "kstars.h"
diff --git a/kstars/kstars/thumbnailpicker.cpp b/kstars/kstars/thumbnailpicker.cpp
index 4b7fd3f5..5339f4a3 100644
--- a/kstars/kstars/thumbnailpicker.cpp
+++ b/kstars/kstars/thumbnailpicker.cpp
@@ -25,7 +25,6 @@
 #include <tqstyle.h>
 
 #include <tdeapplication.h>
-#include <tdeversion.h>
 #include <kpushbutton.h>
 #include <klineedit.h>
 #include <tdelistbox.h>
-- 
cgit v1.2.3

