From 8b6ac101efc8d72e787c1d08a79235d01abb603d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 25 Jul 2011 16:12:16 +0200 Subject: Provide a "click" mechanism to manage favorites With this commit, you can add a favorite by right clicking on the bookmark icon. REVIEW:101945 --- src/urlbar/urlbar.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/urlbar/urlbar.h') diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h index 9ed89dae..58e9b5fb 100644 --- a/src/urlbar/urlbar.h +++ b/src/urlbar/urlbar.h @@ -55,12 +55,11 @@ class IconButton : public QToolButton public: IconButton(QWidget *parent = 0); -signals: +Q_SIGNALS: void clicked(QPoint); protected: void mouseReleaseEvent(QMouseEvent *event); - }; @@ -83,7 +82,8 @@ public: RSS = 0x00000010, SSL = 0x00000100, BK = 0x00001000, - SearchEngine = 0x00010000 + SearchEngine = 0x00010000, + Favorite = 0x00100000 }; explicit UrlBar(QWidget *parent = 0); @@ -91,10 +91,10 @@ public: void activateSuggestions(bool); -public slots: +public Q_SLOTS: void setQUrl(const QUrl &url); -private slots: +private Q_SLOTS: void activated(const KUrl& url, Rekonq::OpenType = Rekonq::CurrentTab); void loadFinished(); @@ -106,7 +106,12 @@ private slots: void detectTypedString(const QString &); void suggest(); - void showBookmarkInfo(const QPoint &pos); + void showBookmarkInfo(QPoint); + void showBookmarkDialog(); + + void showFavoriteDialog(QPoint); + void bookmarkContextMenu(QPoint); + void addFavorite(); void refreshFavicon(); -- cgit v1.2.1