mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Coding style.
This commit is contained in:
parent
484c76eae2
commit
732c1b533f
@ -42,13 +42,13 @@ void MacMenuReceiver::setEnabledSelectedMenuActions(QMenu* menu, const QList<int
|
|||||||
|
|
||||||
// we mean all actions by empty list
|
// we mean all actions by empty list
|
||||||
if (indexList.isEmpty()) {
|
if (indexList.isEmpty()) {
|
||||||
foreach (QAction * act, menu->actions()) {
|
foreach(QAction * act, menu->actions()) {
|
||||||
act->setEnabled(true);
|
act->setEnabled(true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (int index, indexList) {
|
foreach(int index, indexList) {
|
||||||
Q_ASSERT(index >= 0 && index < menu->actions().size());
|
Q_ASSERT(index >= 0 && index < menu->actions().size());
|
||||||
menu->actions().at(index)->setEnabled(true);
|
menu->actions().at(index)->setEnabled(true);
|
||||||
}
|
}
|
||||||
@ -62,19 +62,19 @@ void MacMenuReceiver::setDisabledSelectedMenuActions(QMenu* menu, const QList<in
|
|||||||
|
|
||||||
// we mean all actions by empty list
|
// we mean all actions by empty list
|
||||||
if (indexList.isEmpty()) {
|
if (indexList.isEmpty()) {
|
||||||
foreach (QAction * act, menu->actions()) {
|
foreach(QAction * act, menu->actions()) {
|
||||||
act->setDisabled(true);
|
act->setDisabled(true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (int index, indexList) {
|
foreach(int index, indexList) {
|
||||||
Q_ASSERT(index >= 0 && index < menu->actions().size());
|
Q_ASSERT(index >= 0 && index < menu->actions().size());
|
||||||
menu->actions().at(index)->setDisabled(true);
|
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);
|
//qDebug("MacMenuReceiver::callSlot: \'QupZilla::%s()\'", member);
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void setEnabledSelectedMenuActions(QMenu* menu, const QList<int> indexList = QList<int>());
|
void setEnabledSelectedMenuActions(QMenu* menu, const QList<int> indexList = QList<int>());
|
||||||
void setDisabledSelectedMenuActions(QMenu* menu, const QList<int> indexList = QList<int>());
|
void setDisabledSelectedMenuActions(QMenu* menu, const QList<int> indexList = QList<int>());
|
||||||
bool callSlot(const char *member, bool makeIfNoWindow = false,
|
bool callSlot(const char* member, bool makeIfNoWindow = false,
|
||||||
QGenericArgument val0 = QGenericArgument(0),
|
QGenericArgument val0 = QGenericArgument(0),
|
||||||
QGenericArgument val1 = QGenericArgument());
|
QGenericArgument val1 = QGenericArgument());
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ private slots:
|
|||||||
void zoomOut();
|
void zoomOut();
|
||||||
void zoomReset();
|
void zoomReset();
|
||||||
void fullScreen(bool make);
|
void fullScreen(bool make);
|
||||||
void changeEncoding(QObject *obj = 0);
|
void changeEncoding(QObject* obj = 0);
|
||||||
|
|
||||||
void triggerCaretBrowsing();
|
void triggerCaretBrowsing();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user