From 1638c337c13064e7f7563ea87536fc240501e207 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 17 Sep 2021 09:35:02 +0200 Subject: [PATCH] Welcome: Remove spacing between the link buttons on Welcome screen The 5-pixel spacing causes the sensation of flickering while hovering over the buttons. Other elements on the welcome screen (recent projectsm sessions, etc.) don't have spacing, and therefore, the hovering feels "smoother". This change removes the spacing and compensates that by increasing the link height accordingly. Fixes: QTCREATORBUG-26275 Change-Id: I0159d65d941971c169faf2f156cd4f8c0ddd365c Reviewed-by: Cristian Adam --- src/plugins/welcome/welcomeplugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index ebb6c330753..4832ca127c0 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -175,7 +175,7 @@ public: : QWidget(parent), m_iconSource(iconSource), m_title(title), m_openUrl(openUrl) { setAutoFillBackground(true); - setMinimumHeight(30); + setMinimumHeight(35); setToolTip(m_openUrl); const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource); @@ -288,7 +288,6 @@ public: { auto l = new QVBoxLayout; l->setContentsMargins(0, 0, 0, 0); - l->setSpacing(5); l->addWidget(new IconAndLink("download", tr("Get Qt"), "https://www.qt.io/download", this)); l->addWidget(new IconAndLink("qtaccount", tr("Qt Account"), "https://account.qt.io", this)); l->addWidget(new IconAndLink("community", tr("Online Community"), "https://forum.qt.io", this));