From 732c1b533f89a4e30579e13383499c14931239ec Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 9 Feb 2013 12:40:20 +0100 Subject: [PATCH] Coding style. --- src/lib/other/macmenureceiver.cpp | 14 +++++++------- src/lib/other/macmenureceiver.h | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/other/macmenureceiver.cpp b/src/lib/other/macmenureceiver.cpp index 023128fcf..77f9131e8 100644 --- a/src/lib/other/macmenureceiver.cpp +++ b/src/lib/other/macmenureceiver.cpp @@ -42,13 +42,13 @@ void MacMenuReceiver::setEnabledSelectedMenuActions(QMenu* menu, const QListactions()) { + foreach(QAction * act, menu->actions()) { act->setEnabled(true); } return; } - foreach (int index, indexList) { + foreach(int index, indexList) { Q_ASSERT(index >= 0 && index < menu->actions().size()); menu->actions().at(index)->setEnabled(true); } @@ -62,19 +62,19 @@ void MacMenuReceiver::setDisabledSelectedMenuActions(QMenu* menu, const QListactions()) { + foreach(QAction * act, menu->actions()) { act->setDisabled(true); } return; } - foreach (int index, indexList) { + foreach(int index, indexList) { Q_ASSERT(index >= 0 && index < menu->actions().size()); menu->actions().at(index)->setDisabled(true); } } -bool MacMenuReceiver::callSlot(const char *member, bool makeIfNoWindow, QGenericArgument val0, QGenericArgument val1) +bool MacMenuReceiver::callSlot(const char* member, bool makeIfNoWindow, QGenericArgument val0, QGenericArgument val1) { //qDebug("MacMenuReceiver::callSlot: \'QupZilla::%s()\'", member); @@ -408,7 +408,7 @@ void MacMenuReceiver::loadActionUrlInNewTab(QObject* obj) } if (!callSlot("loadActionUrlInNewTab", false, Q_ARG(QObject*, obj))) { - callSlot("loadActionUrl", true, Q_ARG(QObject*, obj)); + callSlot("loadActionUrl", true, Q_ARG(QObject*, obj)); } } @@ -474,7 +474,7 @@ void MacMenuReceiver::aboutToShowViewMenu() QMenu* menu = qobject_cast(sender()); // 7,8,9=Zoom actions, 12=Character Encoding, 15=Fullscreen setEnabledSelectedMenuActions(menu, QList() - << 0 << 1 << 2 << 7 << 8 << 9 << 11 << 12 << 15); + << 0 << 1 << 2 << 7 << 8 << 9 << 11 << 12 << 15); // for updating reload and stop actions if (mApp->getWindow()) { mApp->getWindow()->updateLoadingActions(); diff --git a/src/lib/other/macmenureceiver.h b/src/lib/other/macmenureceiver.h index 1f3e4c069..642d96351 100644 --- a/src/lib/other/macmenureceiver.h +++ b/src/lib/other/macmenureceiver.h @@ -47,7 +47,7 @@ public: private: void setEnabledSelectedMenuActions(QMenu* menu, const QList indexList = QList()); void setDisabledSelectedMenuActions(QMenu* menu, const QList indexList = QList()); - bool callSlot(const char *member, bool makeIfNoWindow = false, + bool callSlot(const char* member, bool makeIfNoWindow = false, QGenericArgument val0 = QGenericArgument(0), QGenericArgument val1 = QGenericArgument()); @@ -117,7 +117,7 @@ private slots: void zoomOut(); void zoomReset(); void fullScreen(bool make); - void changeEncoding(QObject *obj = 0); + void changeEncoding(QObject* obj = 0); void triggerCaretBrowsing();