diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-01-09 10:23:54 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-01-09 10:23:54 +0100 |
commit | a6658db5ed42c3c261373370fb918063e5135bfc (patch) | |
tree | 5535860aa8cd9f9de5585dfb4ba3b4fb9f02cb5b /src/tabbar.cpp | |
parent | Automatically expand grouped search in panels (diff) | |
parent | Tab bar preview optimization, use event->pos() to get the position of tab ins... (diff) | |
download | rekonq-a6658db5ed42c3c261373370fb918063e5135bfc.tar.xz |
Merge branch 'master' of git.kde.org:rekonq
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 57124979..fcc7b789 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -222,18 +222,7 @@ void TabBar::mouseMoveEvent(QMouseEvent *event) if (ReKonfig::hoveringTabOption() == 0) { //Find the tab under the mouse - int i = 0; - int tabIndex = -1; - while (i < count() - && tabIndex == -1 - ) - { - if (tabRect(i).contains(event->pos())) - { - tabIndex = i; - } - i++; - } + const int tabIndex = tabAt(event->pos()); // if found and not the current tab then show tab preview if (tabIndex != -1 |