Skip to content

Commit 440f1a5

Browse files
authored
Fix indentation of buttons when placed on the left side (#43)
Fixes #41
1 parent 0dfded0 commit 440f1a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qadwaitadecorations.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ QRectF QAdwaitaDecorations::buttonRect(Button button) const
273273
xPos += ceButtonWidth * btnPos;
274274
xPos += ceButtonSpacing * btnPos;
275275
xPos += margins().left();
276+
// We are painting from the left to the right so the real
277+
// position doesn't need to by moved by the size of the button.
278+
xPos -= ceButtonWidth;
276279
}
277280

278281
yPos = margins().top();

0 commit comments

Comments
 (0)