diff options
Diffstat (limited to 'kig/misc')
| -rw-r--r-- | kig/misc/common.cpp | 15 | ||||
| -rw-r--r-- | kig/misc/common.h | 10 | ||||
| -rw-r--r-- | kig/misc/coordinate_system.cpp | 4 |
3 files changed, 0 insertions, 29 deletions
diff --git a/kig/misc/common.cpp b/kig/misc/common.cpp index 5e82d564..9553b14f 100644 --- a/kig/misc/common.cpp +++ b/kig/misc/common.cpp @@ -28,11 +28,7 @@ #include <kdebug.h> #include <knumvalidator.h> #include <tdelocale.h> -#if KDE_IS_VERSION( 3, 1, 90 ) #include <kinputdialog.h> -#else -#include <klineeditdlg.h> -#endif Coordinate calcPointOnPerpend( const LineData& l, const Coordinate& t ) { @@ -349,21 +345,10 @@ Coordinate calcCircleRadicalStartPoint( const Coordinate& ca, const Coordinate& double getDoubleFromUser( const TQString& caption, const TQString& label, double value, TQWidget* parent, bool* ok, double min, double max, int decimals ) { -#ifdef KIG_USE_KDOUBLEVALIDATOR KDoubleValidator vtor( min, max, decimals, 0, 0 ); -#else - KFloatValidator vtor( min, max, (TQWidget*) 0, 0 ); -#endif -#if KDE_IS_VERSION( 3, 1, 90 ) TQString input = KInputDialog::getText( caption, label, TDEGlobal::locale()->formatNumber( value, decimals ), ok, parent, "getDoubleFromUserDialog", &vtor ); -#else - TQString input = - KLineEditDlg::getText( caption, label, - TDEGlobal::locale()->formatNumber( value, decimals ), - ok, parent, &vtor ); -#endif bool myok = true; double ret = TDEGlobal::locale()->readNumber( input, &myok ); diff --git a/kig/misc/common.h b/kig/misc/common.h index e06bccef..8581326b 100644 --- a/kig/misc/common.h +++ b/kig/misc/common.h @@ -31,16 +31,6 @@ #include <vector> #include <assert.h> -#ifdef KDE_IS_VERSION -#if KDE_IS_VERSION( 3, 1, 0 ) -#define KIG_USE_KDOUBLEVALIDATOR -#else -#undef KIG_USE_KDOUBLEVALIDATOR -#endif -#else -#undef KIG_USE_KDOUBLEVALIDATOR -#endif - class ObjectImp; class KigWidget; diff --git a/kig/misc/coordinate_system.cpp b/kig/misc/coordinate_system.cpp index 194a008f..bdd3f1da 100644 --- a/kig/misc/coordinate_system.cpp +++ b/kig/misc/coordinate_system.cpp @@ -43,11 +43,7 @@ class CoordinateValidator : public TQValidator { bool mpolar; -#ifdef KIG_USE_KDOUBLEVALIDATOR KDoubleValidator mdv; -#else - KFloatValidator mdv; -#endif mutable TQRegExp mre; public: CoordinateValidator( bool polar ); |
