diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2021-09-17 09:35:02 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2021-09-17 08:45:13 +0000 |
commit | 1638c337c13064e7f7563ea87536fc240501e207 (patch) | |
tree | fffb1eed6f3a65a4f8a19fcb63c7a8e576fc4ba2 /src | |
parent | 9283f74bed83ab9930b0d1b95bc068099f671af5 (diff) |
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 <cristian.adam@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index ebb6c33075..4832ca127c 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)); |