diff options
Diffstat (limited to 'src/plugins/debugger/debuggeroptionspage.cpp')
-rw-r--r-- | src/plugins/debugger/debuggeroptionspage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeroptionspage.cpp b/src/plugins/debugger/debuggeroptionspage.cpp index a6870fea0a..ea310b1a54 100644 --- a/src/plugins/debugger/debuggeroptionspage.cpp +++ b/src/plugins/debugger/debuggeroptionspage.cpp @@ -32,6 +32,8 @@ #include "debuggeritemmanager.h" #include "debuggeritem.h" +#include <coreplugin/coreconstants.h> + #include <projectexplorer/projectexplorerconstants.h> #include <utils/detailswidget.h> @@ -68,6 +70,8 @@ public: QVariant data(int column, int role) const { + static QIcon errorIcon(QString::fromLatin1(Core::Constants::ICON_ERROR)); + switch (role) { case Qt::DisplayRole: switch (column) { @@ -81,6 +85,13 @@ public: font.setBold(m_changed); return font; } + case Qt::DecorationRole: { + if (column == 0 && !m_item.isGood()) + return errorIcon; + } + case Qt::ToolTipRole: { + return m_item.validityMessage(); + } } return QVariant(); } |