summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-06-08 11:28:23 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-06-08 12:54:39 (GMT)
commitd1a011fd63943b207b97bd0e50dcafe5de2119dc (patch)
treeb2f7a409b1f64ca86a4d3665058b280ce03359d2 /tests/auto
parentf18e6bc6cfdeae8eb171b8c64403c91295b7a1f0 (diff)
downloadQt-d1a011fd63943b207b97bd0e50dcafe5de2119dc.zip
Qt-d1a011fd63943b207b97bd0e50dcafe5de2119dc.tar.gz
Qt-d1a011fd63943b207b97bd0e50dcafe5de2119dc.tar.bz2
Change order of functions in QInputDialog::getDouble()
Fixes issue with decimals in the spinbox used for the double Task-number: 255502 Reviewed-by: mbm
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qinputdialog/tst_qinputdialog.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qinputdialog/tst_qinputdialog.cpp b/tests/auto/qinputdialog/tst_qinputdialog.cpp
index 0f763fc..c635381 100644
--- a/tests/auto/qinputdialog/tst_qinputdialog.cpp
+++ b/tests/auto/qinputdialog/tst_qinputdialog.cpp
@@ -67,6 +67,7 @@ private slots:
void getInteger();
void getDouble_data();
void getDouble();
+ void task255502getDouble();
void getText_data();
void getText();
void getItem_data();
@@ -318,6 +319,20 @@ void tst_QInputDialog::getDouble()
delete parent;
}
+void tst_QInputDialog::task255502getDouble()
+{
+ parent = new QWidget;
+ testFunc = &tst_QInputDialog::testFuncGetDouble;
+ startTimer(0);
+ bool ok = false;
+ const double value = 0.001;
+ const double result =
+ QInputDialog::getDouble(parent, "", "", value, -1, 1, 4, &ok);
+ QVERIFY(ok);
+ QCOMPARE(result, value);
+ delete parent;
+}
+
void tst_QInputDialog::getText_data()
{
QTest::addColumn<QString>("text");