From 10a034f0271b712a4eadcea9b17db407e032d860 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sat, 21 Jan 2012 19:37:39 +0200 Subject: Merge overloads of QInputDialog::getText() and QInputDialog::getItem() Change-Id: Ifaefaa5c3faa698c8570da4ef00e130c211b2609 Reviewed-by: Richard J. Moore --- src/widgets/dialogs/qinputdialog.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/widgets/dialogs/qinputdialog.cpp') diff --git a/src/widgets/dialogs/qinputdialog.cpp b/src/widgets/dialogs/qinputdialog.cpp index dc7e30368b..903d50edab 100644 --- a/src/widgets/dialogs/qinputdialog.cpp +++ b/src/widgets/dialogs/qinputdialog.cpp @@ -1172,17 +1172,6 @@ QString QInputDialog::getText(QWidget *parent, const QString &title, const QStri } } -/*! - \internal -*/ -// ### Qt 5: Use only the version above. -QString QInputDialog::getText(QWidget *parent, const QString &title, const QString &label, - QLineEdit::EchoMode mode, const QString &text, bool *ok, - Qt::WindowFlags flags) -{ - return getText(parent, title, label, mode, text, ok, flags, Qt::ImhNone); -} - /*! \since 4.5 @@ -1341,17 +1330,6 @@ QString QInputDialog::getItem(QWidget *parent, const QString &title, const QStri } } -/*! - \internal -*/ -// ### Qt 5: Use only the version above. -QString QInputDialog::getItem(QWidget *parent, const QString &title, const QString &label, - const QStringList &items, int current, bool editable, bool *ok, - Qt::WindowFlags flags) -{ - return getItem(parent, title, label, items, current, editable, ok, flags, Qt::ImhNone); -} - /*! \obsolete -- cgit v1.2.3