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