Commit 3da6b04a authored by Eike Ziller's avatar Eike Ziller

Show kit details in menu tooltips in TargetSettingsPanel

Change-Id: I47e611b7d1efaa99e19b06ddb7e2684b9fd5744c
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 32cdfa0a
......@@ -530,11 +530,15 @@ void TargetSettingsPanelWidget::createAction(Kit *k, QMenu *menu)
{
QAction *action = new QAction(k->displayName(), menu);
action->setData(QVariant::fromValue(k->id()));
QString statusTip = QLatin1String("<html><body>");
QString errorMessage;
if (!m_project->supportsKit(k, &errorMessage)) {
action->setEnabled(false);
action->setStatusTip(errorMessage);
statusTip += errorMessage;
}
statusTip += k->toHtml();
action->setStatusTip(statusTip);
menu->addAction(action);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment