summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-25 10:07:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-25 10:17:12 +0200
commit69b8ab5d5e3fe891ea7654921276d47dca32ca8e (patch)
treee3fb57db56f433f6af1149eef7fa3c7ebc251d6d /src/tabwindow
parentFix a logic error in unpinTab (diff)
downloadrekonq-69b8ab5d5e3fe891ea7654921276d47dca32ca8e.tar.xz
Finally fix the pinning icons cluttering
(or at least, well workarounding...) BUG: 309213
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabbar.cpp4
1 files changed, 4 insertions, 0 deletions
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);