forked from qt-creator/qt-creator
ProjectExplorer: Enable tooltips in MiniProjectTargetSelector
Enable support for tooltips in MiniProjectTargetSelector. Use it to display the kit information when hovering the Kit selection area. Change-Id: Ie9691973cb74e25217635dc0a798dd9c6219ad37 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -77,6 +77,19 @@ void ProjectConfiguration::setDefaultDisplayName(const QString &name)
|
||||
emit displayNameChanged();
|
||||
}
|
||||
|
||||
void ProjectConfiguration::setToolTip(const QString &text)
|
||||
{
|
||||
if (text == m_toolTip)
|
||||
return;
|
||||
m_toolTip = text;
|
||||
emit toolTipChanged();
|
||||
}
|
||||
|
||||
QString ProjectConfiguration::toolTip() const
|
||||
{
|
||||
return m_toolTip;
|
||||
}
|
||||
|
||||
bool ProjectConfiguration::usesDefaultDisplayName() const
|
||||
{
|
||||
return m_displayName.isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user