summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index f77d4694..2fa4cf8e 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -158,7 +158,7 @@ void TabBar::showTabPreview(int tab)
return;
int w = tabSizeHint(tab).width();
- int h = w*((0.0 + currentView->height())/currentView->width());
+ int h = w * ( (0.0 + currentView->height()) / currentView->width() );
//delete previous tab preview
delete m_previewPopup.data();
@@ -175,7 +175,7 @@ void TabBar::showTabPreview(int tab)
m_previewPopup.data()->layout()->setAlignment(Qt::AlignTop);
m_previewPopup.data()->layout()->setMargin(0);
- QPoint pos( tabRect(tab).x() , tabRect(tab).y() + tabRect(tab).height() );
+ QPoint pos( tabRect(tab).x() , tabRect(tab).y() + tabRect(tab).height() - 3);
m_previewPopup.data()->show(mapToGlobal(pos));
}