forked from qt-creator/qt-creator
Improve icon and label behavior for target selector
I modified the text margins, removed the inconsistent "No project" label and made sure we fall back to the default computer icon when no project is open.
This commit is contained in:
@@ -550,12 +550,12 @@ void MiniProjectTargetSelector::updateAction()
|
||||
{
|
||||
Project *project = ProjectExplorerPlugin::instance()->startupProject();
|
||||
|
||||
QString projectName = tr("No Project");
|
||||
QString projectName;;
|
||||
QString targetName;
|
||||
QString targetToolTipText;
|
||||
QIcon targetIcon;
|
||||
QString buildConfig;
|
||||
QString runConfig;
|
||||
QIcon targetIcon = style()->standardIcon(QStyle::SP_ComputerIcon);
|
||||
|
||||
if (project) {
|
||||
projectName = project->displayName();
|
||||
|
||||
Reference in New Issue
Block a user