diff options
Diffstat (limited to 'src/tabbar.h')
-rw-r--r-- | src/tabbar.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/tabbar.h b/src/tabbar.h index f0476cbd..af3c537b 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -3,9 +3,9 @@ * This file is a part of the rekonq project * * Copyright (C) 2008 Benjamin C. Meyer <ben@meyerhome.net> -* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2008-2010 by Andrea Diamantini <adjam7 at gmail dot com> * Copyright (C) 2009 by Paweł Prażak <pawelprazak at gmail dot com> -* Copyright (C) 2009 by Lionel Chauvin <megabigbug@yahoo.fr> +* Copyright (C) 2009-2010 by Lionel Chauvin <megabigbug@yahoo.fr> * * * This program is free software; you can redistribute it and/or @@ -13,9 +13,9 @@ * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved -* by the membership of KDE e.V.), which shall act as a proxy +* by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -31,11 +31,11 @@ #define TABBAR_H -// Local Includes -#include "rekonqprivate_export.h" +// Rekonq Includes +#include "rekonq_defines.h" // Qt Includes -#include <QPointer> +#include <QWeakPointer> // KDE Includes #include <KTabBar> @@ -61,8 +61,6 @@ public: TabBar(QWidget *parent); ~TabBar(); - void showTabPreview(int tab); - signals: void cloneTab(int index); void closeTab(int index); @@ -76,30 +74,34 @@ protected: * Added to fix tab dimension */ virtual QSize tabSizeHint(int index) const; - + virtual void mouseMoveEvent(QMouseEvent *event); virtual void leaveEvent(QEvent *event); virtual void mousePressEvent(QMouseEvent *event); - + virtual void mouseReleaseEvent(QMouseEvent *event); + virtual void tabRemoved(int); + private slots: void cloneTab(); void closeTab(); void closeOtherTabs(); void reloadTab(); void detachTab(); - + void contextMenu(int, const QPoint &); void emptyAreaContextMenu(const QPoint &); private: + void showTabPreview(int tab); + friend class MainView; - + /** * the index in which we are seeing a Context menu */ int m_actualIndex; - QPointer<KPassivePopup> m_previewPopup; + QWeakPointer<KPassivePopup> m_previewPopup; int m_currentTabPreview; }; |