summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-27 02:25:31 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-27 02:25:31 +0100
commitba9da08e687a4aac11c0df7bdba770c513e977eb (patch)
tree64dca744112aa173506d001a38df92cd0dbcf2c5
parentCedric's Patch (diff)
downloadrekonq-ba9da08e687a4aac11c0df7bdba770c513e977eb.tar.xz
This is not Cedric's fix about new tab button position
but I hope he is anyway happy about :) I removed the oxygen trick as I noticed bug is no more present (tested with kde4/oxygen, kde4/cleanlooks && fluxbox) I also noticed that putting Y position to 2 is better than 0. But this is just my opinion.. :)
-rw-r--r--src/mainview.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 953f6f38..b26e7466 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -146,14 +146,11 @@ void MainView::updateTabButtonPosition()
if (tabWidthHint < sizeHint().width()/4)
newPosX = tabWidgetWidth - m_addTabButton->width();
- // detecting Y position
- int newPosY = m_tabBar->height() - m_addTabButton->height();
- if(newPosY < 0)
- newPosY = 5; // this hardcoded value is used in just ONE situation:
- // the first time an user changes the "Always Show Tab Bar" settings
- // try some better fixes, if you can :D
-
- m_addTabButton->move(newPosX, newPosY);
+ // Y position is fixed
+ // Here I noticed with some emphiric valutations ( :D )
+ // that 2 look better than 0, just that..
+
+ m_addTabButton->move(newPosX, 2);
}
}