Skip to content

Commit d9abfca

Browse files
fix: Change elide mode in Tabbar to ElideRight
- Updated the elide mode in the Tabbar constructor from ElideMiddle to ElideRight to improve text visibility and alignment in the tab display. - This change enhances the user experience by ensuring that the most relevant part of the text is shown when space is limited. log: Change elide mode in Tabbar to ElideRight bug: https://pms.uniontech.com/bug-view-326949.html
1 parent c1d0189 commit d9abfca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/tabbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Tabbar::Tabbar(QWidget *parent)
6464
setVisibleAddButton(true);
6565
setDragable(true);
6666
// setStartDragDistance(40);
67-
setElideMode(Qt::ElideMiddle);
67+
setElideMode(Qt::ElideRight);
6868
setTabPalette(palette().buttonText().color().name(), palette().highlightedText().color().name());
6969
setFocusPolicy(Qt::NoFocus);
7070
qDebug() << "Tabbar initialized with movable and closable tabs";

0 commit comments

Comments
 (0)