summaryrefslogtreecommitdiffstats
path: root/kig/misc/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kig/misc/common.cpp')
-rw-r--r--kig/misc/common.cpp15
1 files changed, 0 insertions, 15 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 );