diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-10 12:33:09 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-10 12:33:09 +0100 |
commit | e9c6614a7986367e29721ace8341c830f5d5a78d (patch) | |
tree | f339372cb2ba080ba8f36ed5fb7e1da0827ea7ca /src | |
parent | SILENT (diff) | |
download | rekonq-e9c6614a7986367e29721ace8341c830f5d5a78d.tar.xz |
fix tab preview position
Diffstat (limited to 'src')
-rw-r--r-- | src/tabbar.cpp | 4 |
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)); } |