summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Haumann <dhaumann@kde.org>2014-01-23 17:16:57 (GMT)
committerDominik Haumann <dhaumann@kde.org>2014-01-23 17:16:57 (GMT)
commited08440085e3e24b3b79a359585b604a22d38a60 (patch)
tree834607b20d3d6ed0ac94275cdfbe9ef8ada54889
parent776def75252dc1f725f4454d15b263ddad0a5a41 (diff)
fix hiding and try better sizing
-rw-r--r--kate/app/katetabbar.cpp7
-rw-r--r--kate/app/kateviewspace.cpp3
2 files changed, 3 insertions, 7 deletions
diff --git a/kate/app/katetabbar.cpp b/kate/app/katetabbar.cpp
index 90d4e7a..4488d18 100644
--- a/kate/app/katetabbar.cpp
+++ b/kate/app/katetabbar.cpp
@@ -41,9 +41,6 @@ KateTabBar::KateTabBar(QWidget *parent)
m_minimumTabWidth = 150;
m_maximumTabWidth = 350;
- // FIXME: better additional size
- setFixedHeight(QFontMetrics(font()).height() + 10);
-
m_nextID = 0;
m_activeButton = 0L;
@@ -254,10 +251,6 @@ int KateTabBar::removeTab(int id)
tabButton->hide();
tabButton->deleteLater();
- if (m_tabButtons.count() == 0) {
- hide();
- }
-
updateButtonPositions();
return position;
diff --git a/kate/app/kateviewspace.cpp b/kate/app/kateviewspace.cpp
index 190af38..807ae4c 100644
--- a/kate/app/kateviewspace.cpp
+++ b/kate/app/kateviewspace.cpp
@@ -82,6 +82,9 @@ KateViewSpace::KateViewSpace(KateViewManager *viewManager,
quickOpen->installEventFilter(this); // on click, active this view space
hLayout->addWidget(quickOpen);
+ // FIXME: better additional size
+ m_tabBar->setFixedHeight(QFontMetrics(font()).height() * 1.2);
+
layout->addLayout(hLayout);
//END tab bar