forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -1231,7 +1231,7 @@ void GdbEngine::handleStackListLocalsClassic(const GdbResponse &response)
|
||||
QStringList uninitializedVariables;
|
||||
if (debuggerCore()->action(UseCodeModel)->isChecked()) {
|
||||
const StackFrame frame =
|
||||
qVariantCanConvert<Debugger::Internal::StackFrame>(response.cookie)
|
||||
response.cookie.canConvert<Debugger::Internal::StackFrame>()
|
||||
? qvariant_cast<Debugger::Internal::StackFrame>(response.cookie)
|
||||
: stackHandler()->currentFrame();
|
||||
if (frame.isUsable())
|
||||
|
||||
Reference in New Issue
Block a user