Commit 8a6426df authored by Janet Blackquill's avatar Janet Blackquill 🌈 Committed by Nate Graham
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
......@@ -1906,13 +1906,13 @@ namespace Breeze
case QTabBar::RoundedWest:
case QTabBar::TriangularWest:
buttonRect.moveBottom( rect.bottom() - Metrics::TabBar_TabMarginWidth );
buttonRect.moveTop( 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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment