diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 19:15:23 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 19:15:23 +0200 |
commit | 52bf222bf033f6bbcd15cfe2012a51a194d475d8 (patch) | |
tree | d2e839ccbdf38c930d145d4d8dd23897bbc43666 /src/bookmarks/bookmarkstoolbar.h | |
parent | Krazy fixes, first bunch (diff) | |
parent | - The bookmark toolbar is now a real toolbar, not an action. (diff) | |
download | rekonq-52bf222bf033f6bbcd15cfe2012a51a194d475d8.tar.xz |
Merge commit 'refs/merge-requests/181' of git://gitorious.org/rekonq/mainline into m181
Conflicts:
src/bookmarks/bookmarkstoolbar.h
Diffstat (limited to 'src/bookmarks/bookmarkstoolbar.h')
-rw-r--r-- | src/bookmarks/bookmarkstoolbar.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.h b/src/bookmarks/bookmarkstoolbar.h index 92a56749..54a430e3 100644 --- a/src/bookmarks/bookmarkstoolbar.h +++ b/src/bookmarks/bookmarkstoolbar.h @@ -31,7 +31,6 @@ // KDE Includes #include <KBookmarkMenu> - /** * This class represent the rekonq bookmarks menu. * It's just a simple class inherited from KBookmarkMenu @@ -73,28 +72,23 @@ private: #include <KToolBar> -class BookmarkToolBar : public KToolBar +/** + * This class manage the bookmark toolbar. + * Some events from the toolbar are handled to allow the drag and drop + */ + +class BookmarkToolBar : public QObject { Q_OBJECT public: -BookmarkToolBar(const QString &objectName, - QMainWindow *parentWindow, - Qt::ToolBarArea area, - bool newLine = false, - bool isMainToolBar = false, - bool readConfig = true); +BookmarkToolBar(KToolBar *toolBar, QObject *parent); ~BookmarkToolBar(); -virtual void setVisible(bool visible); +KToolBar* toolBar(); protected: bool eventFilter(QObject *watched, QEvent *event); - void dragEnterEvent(QDragEnterEvent *event); - void dragMoveEvent(QDragMoveEvent *event); - void dragLeaveEvent(QDragLeaveEvent *event); - void dropEvent(QDropEvent *event); - void actionEvent(QActionEvent *event); private slots: void actionHovered(); @@ -106,11 +100,12 @@ private slots: private: void startDrag(); - bool m_filled; + KToolBar *m_toolBar; KMenu *m_currentMenu; QPoint m_startDragPos; QAction *m_dragAction; QAction *m_dropAction; + bool m_filled; }; #endif // BOOKMARKSTOOLBAR_H |