From 036bd6c5ac265da394472806039ea42823fc4b89 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 15 Feb 2013 17:18:58 +0100 Subject: Restores Bookmarks menu (in 2.x fashion) Cleans up 1.x code about and create a unique bk menu to be shown in rekonq tools menu, (eventually) in the toolbar and in (an ideal) menubar This work starts from Lindsay's review request about. Thanks :) REVIEW: 108729 --- src/bookmarks/bookmarkstoolbar.h | 43 +++++----------------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) (limited to 'src/bookmarks/bookmarkstoolbar.h') diff --git a/src/bookmarks/bookmarkstoolbar.h b/src/bookmarks/bookmarkstoolbar.h index bca7864f..104debce 100644 --- a/src/bookmarks/bookmarkstoolbar.h +++ b/src/bookmarks/bookmarkstoolbar.h @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2012 by Andrea Diamantini +* Copyright (C) 2008-2013 by Andrea Diamantini * Copyright (C) 2010 by Yoann Laissus * * @@ -24,6 +24,7 @@ * * ============================================================ */ + #ifndef BOOKMARKSTOOLBAR_H #define BOOKMARKSTOOLBAR_H @@ -31,46 +32,12 @@ // Rekonq Includes #include "rekonq_defines.h" -// KDE Includes -#include - -/** - * This class represent the rekonq bookmarks menu. - * It's just a simple class inherited from KBookmarkMenu - * - */ -class BookmarkMenu : public KBookmarkMenu -{ - Q_OBJECT - -public: - BookmarkMenu(KBookmarkManager* manager, - KBookmarkOwner* owner, - KMenu* menu, - KActionCollection* actionCollection); - BookmarkMenu(KBookmarkManager *manager, - KBookmarkOwner *owner, - KMenu *parentMenu, - const QString &parentAddress); - ~BookmarkMenu(); - -protected: - virtual KMenu * contextMenu(QAction * act); - virtual void refill(); - virtual QAction* actionForBookmark(const KBookmark &bookmark); - -private: - void addOpenFolderInTabs(); - -}; - - -// ------------------------------------------------------------------------------ - - // KDE Includes #include +// Forward Declarations +class KMenu; + /** * This class manage the bookmark toolbar. -- cgit v1.2.1