aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/fancyactionbar.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-03-19 18:40:00 +0100
committerJens Bache-Wiig <jbache@trolltech.com>2010-03-19 18:41:21 +0100
commitf014f3a424a1e8b89e8c7179665cc226adcf13d7 (patch)
treef0d71b67df8c92d85fe1822cfd12b9e2018467d2 /src/plugins/coreplugin/fancyactionbar.cpp
parent80858f810b3851f9f7d40de031a4783895380121 (diff)
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.
Diffstat (limited to 'src/plugins/coreplugin/fancyactionbar.cpp')
-rw-r--r--src/plugins/coreplugin/fancyactionbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp
index 51e1875cab..57145d3d84 100644
--- a/src/plugins/coreplugin/fancyactionbar.cpp
+++ b/src/plugins/coreplugin/fancyactionbar.cpp
@@ -227,13 +227,13 @@ QSize FancyToolButton::sizeHint() const
QFontMetrics fm(boldFont);
qreal lineHeight = fm.height();
const QString projectName = defaultAction()->property("heading").toString();
- buttonSize += QSizeF(0, 4);
+ buttonSize += QSizeF(0, 10);
if (!projectName.isEmpty())
- buttonSize += QSizeF(0, lineHeight + 6);
+ buttonSize += QSizeF(0, lineHeight + 2);
const QString buildConfiguration = defaultAction()->property("subtitle").toString();
if (!buildConfiguration.isEmpty())
- buttonSize += QSizeF(0, lineHeight + 6);
+ buttonSize += QSizeF(0, lineHeight + 2);
}
return buttonSize.toSize();
}