Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/25/head
Michele Calgaro 3 days ago
parent e5aa596d91
commit eaff1bf5cb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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

@ -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");

Loading…
Cancel
Save