diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2012-09-21 13:44:33 +0200 |
|---|---|---|
| committer | hjk <qthjk@ovi.com> | 2012-09-25 11:01:04 +0200 |
| commit | 89fa7823b3fd48d1d26b2c85be04619cf1a99f28 (patch) | |
| tree | 8831d2d8d3ad5947742c8b38bf2d9bd3e0485dbf /src/plugins/git/gitutils.cpp | |
| parent | aef4280bc1594118c2b75cfb1af1061585f0120f (diff) | |
Replace all remaining functions deprecated in Qt 5, if possible.
These are:
- QInputDialog::getInteger() [-> getInt()]
- QKeySequence::operator QString() [-> toString()]
- QRegion::intersect() [-> intersected()]
- qVariantCanConvert() [-> QVariant::canConvert()]
Plus some left-over occurrences of qFindChild() and
QAbstractItemModel::reset() that were missed by the
respective earlier patches.
All deprecated features still left are not trivially
replaceable, i.e. the code using them cannot be made
to compile with both Qt 4 and Qt 5.
Change-Id: I32541681bbf66b0fef78f5c7025521f9ff84f463
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/git/gitutils.cpp')
| -rw-r--r-- | src/plugins/git/gitutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitutils.cpp b/src/plugins/git/gitutils.cpp index d4942665c19..c6fd61bf349 100644 --- a/src/plugins/git/gitutils.cpp +++ b/src/plugins/git/gitutils.cpp @@ -88,7 +88,7 @@ bool inputText(QWidget *parent, const QString &title, const QString &prompt, QSt dialog.setLabelText(prompt); dialog.setTextValue(*s); // Nasty hack: - if (QLineEdit *le = qFindChild<QLineEdit*>(&dialog)) + if (QLineEdit *le = dialog.findChild<QLineEdit*>()) le->setMinimumWidth(500); if (dialog.exec() != QDialog::Accepted) return false; |
