Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Breeze visual style
Commits
8a6426df
Commit
8a6426df
authored
Feb 28, 2022
by
Jan Blackquill
🌈
Committed by
Nate Graham
Feb 28, 2022
Browse files
KStyle: center QTabBar custom tab buttons vertically in vertical tabs
BUG: 447315
FIXED-IN: 5.24.3 (cherry picked from commit
0576ca06
)
parent
e39325cd
Pipeline
#143479
passed with stage
in 3 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kstyle/breezestyle.cpp
View file @
8a6426df
...
...
@@ -1906,13 +1906,13 @@ namespace Breeze
case
QTabBar
::
RoundedWest
:
case
QTabBar
::
TriangularWest
:
buttonRect
.
move
Bottom
(
rect
.
bottom
()
-
Metrics
::
TabBar_TabMarginWidth
);
buttonRect
.
move
Top
(
rect
.
top
()
+
((
rect
.
height
()
-
buttonRect
.
height
())
/
2
)
);
buttonRect
.
moveLeft
(
(
rect
.
width
()
-
buttonRect
.
width
()
)
/
2
);
break
;
case
QTabBar
::
RoundedEast
:
case
QTabBar
::
TriangularEast
:
buttonRect
.
moveTop
(
rect
.
top
()
+
Metrics
::
TabBar_TabMarginWidth
);
buttonRect
.
moveTop
(
rect
.
top
()
+
((
rect
.
height
()
-
buttonRect
.
height
())
/
2
)
);
buttonRect
.
moveLeft
(
(
rect
.
width
()
-
buttonRect
.
width
()
)
/
2
);
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment