diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-04-15 16:55:41 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-04-16 11:05:28 +0200 |
commit | fe4a5a27e09b8109381e52aa1b71135a916dff1a (patch) | |
tree | 40f74fe0bd96c1c56e266022cccb252b154a9965 /src/widgets/dialogs/qinputdialog.cpp | |
parent | f7284293359663f52d52e79f51ed2e1fe9e6f307 (diff) |
Remove deprecated members from dialog classes
And a few cleanups of out-dated comments and dead code.
Change-Id: I59c6b9129a21b8953626cb63c3ebbf9b6c49a657
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qinputdialog.cpp')
-rw-r--r-- | src/widgets/dialogs/qinputdialog.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/widgets/dialogs/qinputdialog.cpp b/src/widgets/dialogs/qinputdialog.cpp index 836d3bc1de..7569367768 100644 --- a/src/widgets/dialogs/qinputdialog.cpp +++ b/src/widgets/dialogs/qinputdialog.cpp @@ -1322,42 +1322,6 @@ int QInputDialog::getInt(QWidget *parent, const QString &title, const QString &l } /*! - \fn int QInputDialog::getInteger(QWidget *parent, const QString &title, const QString &label, int value, int min, int max, int step, bool *ok, Qt::WindowFlags flags) - \deprecated use getInt() - - Static convenience function to get an integer input from the user. - - \a title is the text which is displayed in the title bar of the dialog. - \a label is the text which is shown to the user (it should say what should - be entered). - \a value is the default integer which the spinbox will be set to. - \a min and \a max are the minimum and maximum values the user may choose. - \a step is the amount by which the values change as the user presses the - arrow buttons to increment or decrement the value. - - If \a ok is nonnull *\a ok will be set to true if the user pressed \uicontrol OK - and to false if the user pressed \uicontrol Cancel. The dialog's parent is - \a parent. The dialog will be modal and uses the widget \a flags. - - On success, this function returns the integer which has been entered by the - user; on failure, it returns the initial \a value. - - Use this static function like this: - - \snippet dialogs/standarddialogs/dialog.cpp 0 - - \sa getText(), getDouble(), getItem(), getMultiLineText() -*/ - -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) && !defined(Q_QDOC) -double QInputDialog::getDouble(QWidget *parent, const QString &title, const QString &label, - double value, double min, double max, int decimals, bool *ok, - Qt::WindowFlags flags) -{ - return QInputDialog::getDouble(parent, title, label, value, min, max, decimals, ok, flags, 1.0); -} -#endif -/*! Static convenience function to get a floating point number from the user. \a title is the text which is displayed in the title bar of the dialog. |