diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-10 17:52:31 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-10 17:52:31 +0900 |
| commit | eaff1bf5cb298aca575933bbcd5443e2970e4581 (patch) | |
| tree | b4611bd64a004a4ee8b469b5d910ee85b1cc18ab | |
| parent | e5aa596d91f8dc76b27019275abd9df8ea084733 (diff) | |
| download | knowit-eaff1bf5cb298aca575933bbcd5443e2970e4581.tar.gz knowit-eaff1bf5cb298aca575933bbcd5443e2970e4581.zip | |
Remove use of TDE_VERSION
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
| -rw-r--r-- | src/knowit.cpp | 5 | ||||
| -rw-r--r-- | src/knowitpref.cpp | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/knowit.cpp b/src/knowit.cpp index 473e78c..178d92b 100644 --- a/src/knowit.cpp +++ b/src/knowit.cpp @@ -31,7 +31,6 @@ #include <tdecmdlineargs.h> #include <kcolordialog.h> #include <tdeconfig.h> -#include <tdeversion.h> #include <kedittoolbar.h> #include <tdefiledialog.h> #include <kkeydialog.h> @@ -254,9 +253,7 @@ Knowit::Knowit(TQWidget*, const char *name) : TDEMainWindow(0, name), TQ_SLOT(slotItemLeft()), actionCollection(), "note_left"); /* Actions */ -#if TDE_VERSION_MAJOR >= 3 && TDE_VERSION_MINOR >= 1 setStandardToolBarMenuEnabled(true); -#endif createGUI("knowitui.rc", false); /* Last save date */ @@ -571,9 +568,7 @@ void Knowit::applyOptions(const KnowitOptions& O, bool store) Edit->unsetFont(); Edit->setWordWrap(O.wordwrap ? TQTextEdit::WidgetWidth : TQTextEdit::NoWrap); -#if TDE_VERSION_MAJOR >= 3 && TDE_VERSION_MINOR >= 1 Edit->setTabChangesFocus(O.tabfocus); -#endif if (!O.autosave) AutosaveTimer->stop(); else diff --git a/src/knowitpref.cpp b/src/knowitpref.cpp index 4ce1725..b70dc26 100644 --- a/src/knowitpref.cpp +++ b/src/knowitpref.cpp @@ -34,7 +34,6 @@ #include <tdeglobal.h> #include <kiconloader.h> #include <tdelocale.h> -#include <tdeversion.h> #include <tdefontdialog.h> #include <klineedit.h> #include <kcolorbutton.h> @@ -217,9 +216,7 @@ KnowitPreferences::KnowitPreferences() page, "EnterLineBreak")); layout->addWidget(tabfocus = new TQCheckBox(i18n("'Tab' in editor changes focus"), page, "TabFocus")); -#if TDE_VERSION_MAJOR == 3 && TDE_VERSION_MINOR < 1 tabfocus->hide(); -#endif TQHBox* colorBox = new TQHBox(page); layout->addWidget(colorBox); customColors = new TQCheckBox(i18n("Use &custom colors"), colorBox, "CustomColors"); |
