qtcreatorcdbext: Simplify Qt 5 code.

Change-Id: I3c62cd7d371312bed1c1c3f5220af86d64143e88
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-12-20 16:17:28 +01:00
parent cd63f3865f
commit 689903164a
3 changed files with 2 additions and 6 deletions

View File

@@ -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