MiniTargetSelector: If the project's displayname is non unique show path

Task-number: QTCREATORBUG-8329
Change-Id: Ia256c09a634ff4794b67007e5013680a8a740201
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Daniel Teske
2013-01-10 15:12:39 +01:00
parent 8e75e611a5
commit 1a1b8abd3e
2 changed files with 17 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
#include <utils/stylehelper.h>
#include <utils/stringutils.h>
#include <utils/tooltip/tooltip.h>
#include <utils/tooltip/tipcontents.h>
#include <coreplugin/icore.h>
#include <coreplugin/imode.h>
@@ -87,6 +89,12 @@ bool FancyToolButton::event(QEvent *e)
animation->start(QAbstractAnimation::DeleteWhenStopped);
}
break;
case QEvent::ToolTip:
{
QHelpEvent *he = static_cast<QHelpEvent *>(e);
Utils::ToolTip::instance()->show(mapToGlobal(he->pos()), Utils::TextContent(toolTip()), this);
return true;
}
default:
return QToolButton::event(e);
}