From e9c6614a7986367e29721ace8341c830f5d5a78d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 10 Feb 2010 12:33:09 +0100 Subject: fix tab preview position --- src/tabbar.cpp | 4 ++-- 1 file 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)); } -- cgit v1.2.1