From 69b8ab5d5e3fe891ea7654921276d47dca32ca8e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 25 Apr 2013 10:07:45 +0200 Subject: Finally fix the pinning icons cluttering (or at least, well workarounding...) BUG: 309213 --- src/tabwindow/tabbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tabwindow/tabbar.cpp') diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp index 1ca3d4c2..eb062bf6 100644 --- a/src/tabwindow/tabbar.cpp +++ b/src/tabwindow/tabbar.cpp @@ -562,6 +562,8 @@ void TabBar::pinTab() if (!label) label = new QLabel(this); + label->resize(QSize(16,16)); + setTabButton(index, QTabBar::LeftSide, 0); setTabButton(index, QTabBar::LeftSide, label); @@ -607,6 +609,8 @@ void TabBar::unpinTab() if (!label) label = new QLabel(this); + label->resize(QSize(16,16)); + setTabButton(index, QTabBar::LeftSide, 0); setTabButton(index, QTabBar::LeftSide, label); -- cgit v1.2.1