summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-01-21 09:38:02 +0100
committerMontel Laurent <[email protected]>2015-01-21 09:38:02 +0100
commiteeb001ec7c95bd6870e6b407949f233eace00168 (patch)
treee518e31b707b806dddca22858b07b94d4a87c6d7
parentd04dc20ecaa4e064bca95171580b64e3d557e42f (diff)
kdelibs4support--
-rw-r--r--landscape.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/landscape.cpp b/landscape.cpp
index a8f8f82..6b604cb 100644
--- a/landscape.cpp
+++ b/landscape.cpp
@@ -21,15 +21,14 @@
#include "ball.h"
#include "game.h"
+#include <QDoubleSpinBox>
#include <QBoxLayout>
#include <QCheckBox>
#include <QLabel>
#include <QSlider>
#include <KComboBox>
#include <KConfigGroup>
-#include <KGlobal>
#include <KLocalizedString>
-#include <KNumInput>
//BEGIN Kolf::LandscapeItem
//END Kolf::LandscapeItem
@@ -253,7 +252,7 @@ struct SlopeData
<< QLatin1String("slope_dip");
}
};
-K_GLOBAL_STATIC(SlopeData, g_slopeData)
+Q_GLOBAL_STATIC(SlopeData, g_slopeData)
Kolf::Slope::Slope(QGraphicsItem* parent, b2World* world)
: Tagaro::SpriteObjectItem(Kolf::renderer(), QString(), parent)
@@ -581,8 +580,9 @@ Kolf::SlopeConfig::SlopeConfig(Kolf::Slope* slope, QWidget* parent)
layout->addWidget(new QLabel(i18n("Grade:"), this), 2, 0);
- KDoubleNumInput* grade = new KDoubleNumInput(this);
- grade->setRange(0, 8, 1, true);
+ QDoubleSpinBox* grade = new QDoubleSpinBox(this);
+ grade->setRange(0, 8);
+ grade->setSingleStep(1);
grade->setValue(slope->grade());
connect(grade, SIGNAL(valueChanged(double)), slope, SLOT(setGrade(double)));
layout->addWidget(grade, 2, 1);