From 2d9dc5a27f019125f12cd7a0dff0d5f615f88728 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 17 Feb 2017 16:59:32 +0100 Subject: [PATCH] Welcome: Readjust link buttons to Diana's metrics The hover area is 30px high and the spacing 5px Change-Id: I252f87b1961768d54a65ddf69c8106e87790b2a3 Reviewed-by: hjk --- src/plugins/welcome/welcomeplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 2c6f88956a9..d5c994ef5e3 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));