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>
This commit is contained in:
Alessandro Portale
2017-02-17 16:59:32 +01:00
parent 5ac44bcf64
commit 2d9dc5a27f

View File

@@ -142,6 +142,7 @@ public:
: QWidget(parent), m_iconSource(iconSource), m_title(title), m_openUrl(openUrl) : QWidget(parent), m_iconSource(iconSource), m_title(title), m_openUrl(openUrl)
{ {
setAutoFillBackground(true); setAutoFillBackground(true);
setMinimumHeight(30);
const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource); const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource);
const Icon icon({{ fileName, Theme::Welcome_ForegroundPrimaryColor }}, Icon::Tint); const Icon icon({{ fileName, Theme::Welcome_ForegroundPrimaryColor }}, Icon::Tint);
@@ -251,7 +252,7 @@ public:
{ {
auto l = new QVBoxLayout; auto l = new QVBoxLayout;
l->setContentsMargins(0, 0, 0, 0); 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("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("community", tr("Online Community"), "http://forum.qt.io", this));
l->addWidget(new IconAndLink("blogs", tr("Blogs"), "http://planet.qt.io", this)); l->addWidget(new IconAndLink("blogs", tr("Blogs"), "http://planet.qt.io", this));