diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-25 16:12:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-25 16:12:16 +0200 |
commit | 8b6ac101efc8d72e787c1d08a79235d01abb603d (patch) | |
tree | eb13bbdeae4f818bc4479c475382f1b2e0047c68 /src/urlbar/urlbar.h | |
parent | Fallback on loading the homepage if restoring the session failed. (diff) | |
download | rekonq-8b6ac101efc8d72e787c1d08a79235d01abb603d.tar.xz |
Provide a "click" mechanism to manage favorites
With this commit, you can add a favorite by right
clicking on the bookmark icon.
REVIEW:101945
Diffstat (limited to 'src/urlbar/urlbar.h')
-rw-r--r-- | src/urlbar/urlbar.h | 17 |
1 files changed, 11 insertions, 6 deletions
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(); |