forked from qt-creator/qt-creator
Show kit details in menu tooltips in TargetSettingsPanel
Change-Id: I47e611b7d1efaa99e19b06ddb7e2684b9fd5744c Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user