summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--atlantik/client/atlantik.cpp13
-rw-r--r--atlantik/client/configdlg.cpp19
-rw-r--r--atlantik/libatlantikui/estateview.cpp7
-rw-r--r--atlantik/tdeio_atlantik/tdeio_atlantik.cpp11
-rw-r--r--kgoldrunner/src/kgoldrunner.cpp17
-rw-r--r--kolf/kolf.cpp1
6 files changed, 1 insertions, 67 deletions
diff --git a/atlantik/client/atlantik.cpp b/atlantik/client/atlantik.cpp
index 9f442da7..c4ebbc0e 100644
--- a/atlantik/client/atlantik.cpp
+++ b/atlantik/client/atlantik.cpp
@@ -35,15 +35,6 @@
#include <kstdgameaction.h>
#include <kstdaction.h>
#include <tdetoolbar.h>
-
-#include <tdeversion.h>
-#undef KDE_3_2_FEATURES
-#if defined(TDE_MAKE_VERSION)
-#if TDE_VERSION >= TDE_MAKE_VERSION(3,2,0)
- #define KDE_3_2_FEATURES
-#endif
-#endif
-
#include <kdebug.h>
#include <atlantic_core.h>
@@ -66,11 +57,7 @@
LogTextEdit::LogTextEdit( TQWidget *parent, const char *name ) : TQTextEdit( parent, name )
{
-#ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( this, TQ_SLOT( clear() ), 0 );
-#else
- m_clear = new TDEAction( i18n("Clear"), "clear", NULL, this, TQ_SLOT( clear() ), static_cast<TDEActionCollection *>(0), "clear" );
-#endif
m_selectAll = KStdAction::selectAll( this, TQ_SLOT( selectAll() ), 0 );
m_copy = KStdAction::copy( this, TQ_SLOT( copy() ), 0 );
}
diff --git a/atlantik/client/configdlg.cpp b/atlantik/client/configdlg.cpp
index a954cc7b..b8c39ece 100644
--- a/atlantik/client/configdlg.cpp
+++ b/atlantik/client/configdlg.cpp
@@ -19,18 +19,6 @@
#include <tqwhatsthis.h>
#include <tqlabel.h>
-#include <tdeversion.h>
-#undef KDE_3_1_FEATURES
-#undef KDE_3_3_FEATURES
-#if defined(TDE_MAKE_VERSION)
-#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
-#define KDE_3_1_FEATURES
-#endif
-#if TDE_VERSION >= TDE_MAKE_VERSION(3,2,90)
-#define KDE_3_3_FEATURES
-#endif
-#endif
-
#include <kicondialog.h>
#include <kiconloader.h>
#include <tdelocale.h>
@@ -147,15 +135,8 @@ TQString ConfigPlayer::playerImage()
void ConfigPlayer::chooseImage()
{
TDEIconDialog iconDialog( this, "iconDialog" );
-#ifdef KDE_3_1_FEATURES
iconDialog.setCustomLocation( locate("appdata", "themes/default/tokens/") );
-#endif
-
-#ifdef KDE_3_3_FEATURES
iconDialog.setup( TDEIcon::Desktop, TDEIcon::Application, false, 0, true, true, true ); // begin with user icons, lock editing
-#else
- iconDialog.setup( TDEIcon::Desktop, TDEIcon::Application, false, 0, true ); // begin with user icons
-#endif
TQString image = iconDialog.openDialog();
diff --git a/atlantik/libatlantikui/estateview.cpp b/atlantik/libatlantikui/estateview.cpp
index 4d7ba21e..a8ba71ed 100644
--- a/atlantik/libatlantikui/estateview.cpp
+++ b/atlantik/libatlantikui/estateview.cpp
@@ -21,7 +21,6 @@
#include <tqcursor.h>
#include <kdebug.h>
-#include <tdeversion.h>
#include <kdialogbase.h>
#include <tdeglobalsettings.h>
#include <tdelocale.h>
@@ -404,14 +403,10 @@ void EstateView::paintEvent(TQPaintEvent *)
TQFont font = TQFont( TDEGlobalSettings::generalFont().family(), TDEGlobalSettings::generalFont().pointSize(), TQFont::Normal );
painter.setFont(font);
TQString estateName = m_estate->name();
-#if defined(TDE_MAKE_VERSION)
-#if TDE_VERSION >= TDE_MAKE_VERSION(3,2,0)
- if ( m_estate->color().isValid() && ( m_orientation == West || m_orientation == East ) )
+ if ( m_estate->color().isValid() && ( m_orientation == West || m_orientation == East ) )
estateName = KStringHandler::rPixelSqueeze( m_estate->name(), TQFontMetrics( font ), 3*width()/4 );
else
estateName = KStringHandler::rPixelSqueeze( m_estate->name(), TQFontMetrics( font ), width() );
-#endif
-#endif
if (m_estate->color().isValid() && m_orientation == West)
painter.drawText( width()/4 + 2, height()/2, estateName );
else
diff --git a/atlantik/tdeio_atlantik/tdeio_atlantik.cpp b/atlantik/tdeio_atlantik/tdeio_atlantik.cpp
index a2860c5b..5a5aff42 100644
--- a/atlantik/tdeio_atlantik/tdeio_atlantik.cpp
+++ b/atlantik/tdeio_atlantik/tdeio_atlantik.cpp
@@ -18,13 +18,6 @@
#include <tqtextstream.h>
-#include <tdeversion.h>
-#undef KDE_3_1_FEATURES
-#ifdef TDE_MAKE_VERSION
-#if TDE_VERSION > TDE_MAKE_VERSION (3, 1, 0)
-#define KDE_3_1_FEATURES
-#endif
-#endif
#include <tdeio/slavebase.h>
#include <tdeinstance.h>
#include <kprocess.h>
@@ -48,11 +41,7 @@ void AtlantikProtocol::get( const KURL& url )
TDEProcess *proc = new TDEProcess;
*proc << "atlantik";
-#ifdef KDE_3_1_FEATURES
TQString host = url.hasHost() ? url.host() : TDEProcess::quote( url.queryItem("host") );
-#else
- TQString host = url.hasHost() ? url.host() : url.queryItem("host");
-#endif
TQString port = TQString::number( url.port() ? url.port() : 1234 );
int game = url.queryItem("game").toInt();
TQString gameString = game ? TQString::number( game ) : TQString();
diff --git a/kgoldrunner/src/kgoldrunner.cpp b/kgoldrunner/src/kgoldrunner.cpp
index 28419dc8..d2d5e262 100644
--- a/kgoldrunner/src/kgoldrunner.cpp
+++ b/kgoldrunner/src/kgoldrunner.cpp
@@ -767,15 +767,7 @@ void KGoldrunner::optionsConfigureKeys()
void KGoldrunner::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
}
void KGoldrunner::newToolbarConfig()
@@ -783,16 +775,7 @@ void KGoldrunner::newToolbarConfig()
// this slot is called when user clicks "Ok" or "Apply" in the toolbar editor.
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI();
-
-#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 KGoldrunner::optionsPreferences()
diff --git a/kolf/kolf.cpp b/kolf/kolf.cpp
index 856a023a..9bd7e51e 100644
--- a/kolf/kolf.cpp
+++ b/kolf/kolf.cpp
@@ -2,7 +2,6 @@
#include <tdeapplication.h>
#include <tdeconfig.h>
#include <kdebug.h>
-#include <tdeversion.h>
#include <tdefiledialog.h>
#include <tdeglobal.h>
#include <tdeio/netaccess.h>