Changeset View
Changeset View
Standalone View
Standalone View
src/kxmlguifactory.cpp
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Line(s) | 301 | if (!unaddedActions.isEmpty()) | |||
---|---|---|---|---|---|
302 | qCWarning(DEBUG_KXMLGUI) << "The following actions are not plugged into the gui (shortcuts will not work): " << unaddedActions; | 302 | qCWarning(DEBUG_KXMLGUI) << "The following actions are not plugged into the gui (shortcuts will not work): " << unaddedActions; | ||
303 | */ | 303 | */ | ||
304 | 304 | | |||
305 | // qCDebug(DEBUG_KXMLGUI) << "addClient took " << dt.elapsed(); | 305 | // qCDebug(DEBUG_KXMLGUI) << "addClient took " << dt.elapsed(); | ||
306 | } | 306 | } | ||
307 | 307 | | |||
308 | void KXMLGUIFactory::refreshActionProperties() | 308 | void KXMLGUIFactory::refreshActionProperties() | ||
309 | { | 309 | { | ||
310 | Q_FOREACH (KXMLGUIClient *client, d->m_clients) { | 310 | for (KXMLGUIClient *client : qAsConst(d->m_clients)) { | ||
311 | d->guiClient = client; | 311 | d->guiClient = client; | ||
312 | QDomDocument doc = client->xmlguiBuildDocument(); | 312 | QDomDocument doc = client->xmlguiBuildDocument(); | ||
313 | if (doc.documentElement().isNull()) { | 313 | if (doc.documentElement().isNull()) { | ||
314 | client->reloadXML(); | 314 | client->reloadXML(); | ||
315 | doc = client->domDocument(); | 315 | doc = client->domDocument(); | ||
316 | } | 316 | } | ||
317 | d->refreshActionProperties(client, client->actionCollection()->actions(), doc); | 317 | d->refreshActionProperties(client, client->actionCollection()->actions(), doc); | ||
318 | } | 318 | } | ||
▲ Show 20 Lines • Show All 453 Lines • Show Last 20 Lines |