Debugger: Mark bad debuggger entries with an error icon

Change-Id: If3f7ab4ea015be6f580f748f9d0ee19c608a0239
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
hjk
2015-09-07 12:13:03 +02:00
parent b932a61d77
commit b0e7368d58
3 changed files with 26 additions and 0 deletions

View File

@@ -202,6 +202,18 @@ QStringList DebuggerItem::abiNames() const
return list;
}
bool DebuggerItem::isGood() const
{
return m_engineType != NoEngineType;
}
QString DebuggerItem::validityMessage() const
{
if (m_engineType == NoEngineType)
return DebuggerOptionsPage::tr("Could not determine debugger type");
return QString();
}
bool DebuggerItem::operator==(const DebuggerItem &other) const
{
return m_id == other.m_id