forked from qt-creator/qt-creator
qtcreatorcdbext: Simplify Qt 5 code.
Change-Id: I3c62cd7d371312bed1c1c3f5220af86d64143e88 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -636,8 +636,7 @@ std::string widgetAt(const SymbolGroupValueContext &ctx, int x, int y, std::stri
|
||||
const QtInfo &qtInfo = QtInfo::get(ctx);
|
||||
const std::string func =
|
||||
qtInfo.prependQtModule("QApplication::widgetAt",
|
||||
qtInfo.version >= 5 && QtInfo::qt5WidgetSplit ?
|
||||
QtInfo::Widgets : QtInfo::Gui);
|
||||
qtInfo.version >= 5 ? QtInfo::Widgets : QtInfo::Gui);
|
||||
const SymbolList symbols = SymbolGroupValue::resolveSymbol(func.c_str(), ctx, errorMessage);
|
||||
if (symbols.empty())
|
||||
return std::string(); // Not a gui application, likely
|
||||
|
||||
Reference in New Issue
Block a user