diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-02-12 11:14:50 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-02-12 16:10:24 +0100 |
commit | 5e83a2eed2dc42a732bd9154bebe8dcb34cd6bb5 (patch) | |
tree | df0b2dd12c511107631eec4a0c008e95350285d9 /examples | |
parent | 2b0af50c8ba534a6032a31297f1915b50a100241 (diff) | |
download | qtbase-5e83a2eed2dc42a732bd9154bebe8dcb34cd6bb5.tar.gz |
Deprecate one overload of QInputDialog::getDouble() for 5.15
...and merge the two overloads of getDouble() in Qt6
Change-Id: I55faa2ff222b41e48889a0ef14dd00a6da691c36
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/widgets/dialogs/standarddialogs/dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/dialogs/standarddialogs/dialog.cpp b/examples/widgets/dialogs/standarddialogs/dialog.cpp index 77549e60f8..cd7e8085a2 100644 --- a/examples/widgets/dialogs/standarddialogs/dialog.cpp +++ b/examples/widgets/dialogs/standarddialogs/dialog.cpp @@ -329,7 +329,8 @@ void Dialog::setDouble() //! [1] bool ok; double d = QInputDialog::getDouble(this, tr("QInputDialog::getDouble()"), - tr("Amount:"), 37.56, -10000, 10000, 2, &ok); + tr("Amount:"), 37.56, -10000, 10000, 2, &ok, + Qt::WindowFlags(), 1); if (ok) doubleLabel->setText(QString("$%1").arg(d)); //! [1] |