Changeset View
Changeset View
Standalone View
Standalone View
src/ktoolbar.cpp
Show First 20 Lines • Show All 571 Lines • ▼ Show 20 Line(s) | 564 | { | |||
---|---|---|---|---|---|
572 | KMainWindow *kmw = q->mainWindow(); | 572 | KMainWindow *kmw = q->mainWindow(); | ||
573 | if (kmw) { | 573 | if (kmw) { | ||
574 | kmw->setSettingsDirty(); | 574 | kmw->setSettingsDirty(); | ||
575 | } | 575 | } | ||
576 | } | 576 | } | ||
577 | 577 | | |||
578 | QAction *KToolBar::Private::findAction(const QString &actionName, KXMLGUIClient **clientOut) const | 578 | QAction *KToolBar::Private::findAction(const QString &actionName, KXMLGUIClient **clientOut) const | ||
579 | { | 579 | { | ||
580 | Q_FOREACH (KXMLGUIClient *client, xmlguiClients) { | 580 | for (KXMLGUIClient *client : xmlguiClients) { | ||
581 | QAction *action = client->actionCollection()->action(actionName); | 581 | QAction *action = client->actionCollection()->action(actionName); | ||
582 | if (action) { | 582 | if (action) { | ||
583 | if (clientOut) { | 583 | if (clientOut) { | ||
584 | *clientOut = client; | 584 | *clientOut = client; | ||
585 | } | 585 | } | ||
586 | return action; | 586 | return action; | ||
587 | } | 587 | } | ||
588 | } | 588 | } | ||
▲ Show 20 Lines • Show All 832 Lines • Show Last 20 Lines |