aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/welcome/welcomeplugin.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2017-02-17 16:59:32 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2017-02-17 17:34:38 +0000
commit2d9dc5a27f019125f12cd7a0dff0d5f615f88728 (patch)
tree30cb2867d2e3968ea7342474e7ccc985146db03f /src/plugins/welcome/welcomeplugin.cpp
parent5ac44bcf64b6e722f3087aedf50a887dd362c103 (diff)
Welcome: Readjust link buttons to Diana's metrics
The hover area is 30px high and the spacing 5px Change-Id: I252f87b1961768d54a65ddf69c8106e87790b2a3 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/welcome/welcomeplugin.cpp')
-rw-r--r--src/plugins/welcome/welcomeplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index 2c6f88956a..d5c994ef5e 100644
--- a/src/plugins/welcome/welcomeplugin.cpp
+++ b/src/plugins/welcome/welcomeplugin.cpp
@@ -142,6 +142,7 @@ public:
: QWidget(parent), m_iconSource(iconSource), m_title(title), m_openUrl(openUrl)
{
setAutoFillBackground(true);
+ setMinimumHeight(30);
const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource);
const Icon icon({{ fileName, Theme::Welcome_ForegroundPrimaryColor }}, Icon::Tint);
@@ -251,7 +252,7 @@ public:
{
auto l = new QVBoxLayout;
l->setContentsMargins(0, 0, 0, 0);
- l->setSpacing(sd + 3);
+ l->setSpacing(5);
l->addWidget(new IconAndLink("qtaccount", tr("Qt Account"), "https://account.qt.io", this));
l->addWidget(new IconAndLink("community", tr("Online Community"), "http://forum.qt.io", this));
l->addWidget(new IconAndLink("blogs", tr("Blogs"), "http://planet.qt.io", this));