summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bookmarks/bookmarkcontextmenu.cpp7
-rw-r--r--src/bookmarks/bookmarkcontextmenu.h2
-rw-r--r--src/history/historypanel.cpp9
3 files changed, 14 insertions, 4 deletions
diff --git a/src/bookmarks/bookmarkcontextmenu.cpp b/src/bookmarks/bookmarkcontextmenu.cpp
index 1d50cfe9..dedec097 100644
--- a/src/bookmarks/bookmarkcontextmenu.cpp
+++ b/src/bookmarks/bookmarkcontextmenu.cpp
@@ -31,14 +31,14 @@
#include "application.h"
#include "bookmarksmanager.h"
-// Qt Includes
-#include <QClipboard>
-
// KDE Includes
#include <KMessageBox>
#include <KActionCollection>
#include <KBookmarkDialog>
+// Qt Includes
+#include <QClipboard>
+
BookmarkContextMenu::BookmarkContextMenu(const KBookmark & bookmark, KBookmarkManager *manager, KBookmarkOwner *owner, QWidget *parent)
: KBookmarkContextMenu(bookmark, manager, owner, parent)
@@ -321,3 +321,4 @@ void BookmarkContextMenu::bookmarkCurrentPage()
manager()->emitChanged();
}
+
diff --git a/src/bookmarks/bookmarkcontextmenu.h b/src/bookmarks/bookmarkcontextmenu.h
index 7f00738a..2028df39 100644
--- a/src/bookmarks/bookmarkcontextmenu.h
+++ b/src/bookmarks/bookmarkcontextmenu.h
@@ -37,6 +37,7 @@
class BookmarkContextMenu : public KBookmarkContextMenu
{
Q_OBJECT
+
public:
BookmarkContextMenu(const KBookmark & bk, KBookmarkManager * manager, KBookmarkOwner *owner, QWidget * parent = 0);
virtual void addActions();
@@ -62,3 +63,4 @@ private:
};
#endif // BOOKMARKCONTEXTMENU_H
+
diff --git a/src/history/historypanel.cpp b/src/history/historypanel.cpp
index ec84bc02..87b5fe55 100644
--- a/src/history/historypanel.cpp
+++ b/src/history/historypanel.cpp
@@ -119,6 +119,7 @@ void HistoryPanel::setup()
connect(m_treeView, SIGNAL(contextMenuGroupRequested(const QPoint &)), this, SLOT(contextMenuGroup(const QPoint &)));
}
+
void HistoryPanel::contextMenuItem(const QPoint &pos)
{
KMenu *menu = new KMenu(this);
@@ -145,6 +146,7 @@ void HistoryPanel::contextMenuItem(const QPoint &pos)
menu->popup(m_treeView->mapToGlobal(pos));
}
+
void HistoryPanel::contextMenuGroup(const QPoint &pos)
{
KMenu *menu = new KMenu(this);
@@ -160,6 +162,7 @@ void HistoryPanel::contextMenuGroup(const QPoint &pos)
menu->popup(m_treeView->mapToGlobal(pos));
}
+
void HistoryPanel::openAll()
{
QModelIndex index = m_treeView->currentIndex();
@@ -173,10 +176,14 @@ void HistoryPanel::openAll()
if(allChild.length() > 8)
{
- if(!(KMessageBox::warningContinueCancel(this, i18n("You are about to open %1 tabs.\nAre you sure ?", QString::number(allChild.length()))) == KMessageBox::Continue))
+ if( !(KMessageBox::warningContinueCancel(this,
+ i18n("You are about to open %1 tabs.\nAre you sure ?",
+ QString::number(allChild.length()))) == KMessageBox::Continue)
+ )
return;
}
for(int i = 0; i < allChild.length(); i++)
emit openUrl(allChild.at(i).url(), Rekonq::SettingOpenTab);
}
+