summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorJohannes Troscher <fritz_van_tom@hotmail.com>2011-11-27 12:18:33 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-27 12:18:33 +0100
commit6390d8ea58021f67257527cf98af5074656e0838 (patch)
tree2defdd7055541f41da100a81aa715bfb10ce8cc9 /src/bookmarks
parentMerge branch 'bkGroupMidClick' (diff)
downloadrekonq-6390d8ea58021f67257527cf98af5074656e0838.tar.xz
Unifies macro style
REVIEW: 103242 REVIEWED-BY: adjam
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarkprovider.cpp6
-rw-r--r--src/bookmarks/bookmarkstoolbar.h4
-rw-r--r--src/bookmarks/bookmarkstreemodel.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp
index 9b4be96f..ca705715 100644
--- a/src/bookmarks/bookmarkprovider.cpp
+++ b/src/bookmarks/bookmarkprovider.cpp
@@ -179,7 +179,7 @@ KBookmark BookmarkProvider::bookmarkForUrl(const KUrl &url)
void BookmarkProvider::slotBookmarksChanged()
{
- foreach(BookmarkToolBar * bookmarkToolBar, m_bookmarkToolBars)
+ Q_FOREACH(BookmarkToolBar * bookmarkToolBar, m_bookmarkToolBars)
{
if (bookmarkToolBar)
{
@@ -231,7 +231,7 @@ void BookmarkProvider::fillBookmarkBar(BookmarkToolBar *toolBar)
void BookmarkProvider::slotPanelChanged()
{
- foreach(BookmarksPanel * panel, m_bookmarkPanels)
+ Q_FOREACH(BookmarksPanel * panel, m_bookmarkPanels)
{
if (panel && panel != sender())
panel->loadFoldedState();
@@ -253,7 +253,7 @@ void BookmarkProvider::find(QList<KBookmark> *list, const KBookmark &bookmark, c
{
QStringList words = text.split(' ');
bool matches = true;
- foreach(const QString & word, words)
+ Q_FOREACH(const QString & word, words)
{
if (!bookmark.url().url().contains(word, Qt::CaseInsensitive)
&& !bookmark.fullText().contains(word, Qt::CaseInsensitive))
diff --git a/src/bookmarks/bookmarkstoolbar.h b/src/bookmarks/bookmarkstoolbar.h
index 3eaa1e87..5cc28305 100644
--- a/src/bookmarks/bookmarkstoolbar.h
+++ b/src/bookmarks/bookmarkstoolbar.h
@@ -59,7 +59,7 @@ protected:
virtual void refill();
virtual QAction* actionForBookmark(const KBookmark &bookmark);
-private slots:
+private Q_SLOTS:
void actionHovered();
private:
@@ -92,7 +92,7 @@ public:
protected:
bool eventFilter(QObject *watched, QEvent *event);
-private slots:
+private Q_SLOTS:
void contextMenu(const QPoint &);
void actionHovered();
void menuDisplayed();
diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp
index 42cd7b28..8e6104a4 100644
--- a/src/bookmarks/bookmarkstreemodel.cpp
+++ b/src/bookmarks/bookmarkstreemodel.cpp
@@ -344,7 +344,7 @@ void BookmarksTreeModel::bookmarksChanged(const QString &groupAddress)
QStringList indexChain(groupAddress.split('/', QString::SkipEmptyParts));
bool ok;
int i;
- foreach(const QString & sIndex, indexChain)
+ Q_FOREACH(const QString & sIndex, indexChain)
{
i = sIndex.toInt(&ok);
if (!ok)