diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2020-12-01 15:06:23 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2020-12-01 14:41:19 +0000 |
commit | cfacbb773be7151d9e7b7df2f2ae946ab476e372 (patch) | |
tree | 417665715618a6e9ecbd318e43232f3d60c2a922 | |
parent | 88c13153b3be8096d413d0ab44336e82afd740fe (diff) |
Utils: Use padding instead of margins for CrumblePathButton
Clicks on QPushButton margins are no longer detected as clicks, so
change the text alignment to be done with padding instead of margins.
See QTBUG-81452 and QTBUG-86587 for related issues.
Change-Id: I85971c4defc5d43f959095d4d8e4457804aae0f9
Fixes: QDS-3180
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/libs/utils/crumblepath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/crumblepath.cpp b/src/libs/utils/crumblepath.cpp index f8f027d7f7..378f41545b 100644 --- a/src/libs/utils/crumblepath.cpp +++ b/src/libs/utils/crumblepath.cpp @@ -177,7 +177,7 @@ CrumblePath::CrumblePath(QWidget *parent) : QWidget(parent) layout->setSpacing(0); setLayout(layout); - setStyleSheet("QPushButton { margin: 12; }"); + setStyleSheet("QPushButton { padding-left: 12; padding-right: 12; }"); } CrumblePath::~CrumblePath() |