Changeset View
Changeset View
Standalone View
Standalone View
app/kipiinterface.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 292 | { | |||
---|---|---|---|---|---|
329 | MenuInfoMap::Iterator | 329 | MenuInfoMap::Iterator | ||
330 | it = d->mMenuInfoMap.begin(), | 330 | it = d->mMenuInfoMap.begin(), | ||
331 | end = d->mMenuInfoMap.end(); | 331 | end = d->mMenuInfoMap.end(); | ||
332 | for (; it != end; ++it) { | 332 | for (; it != end; ++it) { | ||
333 | MenuInfo& info = it.value(); | 333 | MenuInfo& info = it.value(); | ||
334 | if (!info.mActions.isEmpty()) { | 334 | if (!info.mActions.isEmpty()) { | ||
335 | QMenu* menu = d->mPluginMenu->addMenu(info.mName); | 335 | QMenu* menu = d->mPluginMenu->addMenu(info.mName); | ||
336 | menu->setIcon(QIcon::fromTheme(info.mIconName)); | 336 | menu->setIcon(QIcon::fromTheme(info.mIconName)); | ||
337 | qSort(info.mActions.begin(), info.mActions.end(), actionLessThan); | 337 | std::sort(info.mActions.begin(), info.mActions.end(), actionLessThan); | ||
338 | Q_FOREACH(QAction * action, info.mActions) { | 338 | Q_FOREACH(QAction * action, info.mActions) { | ||
339 | menu->addAction(action); | 339 | menu->addAction(action); | ||
340 | } | 340 | } | ||
341 | } | 341 | } | ||
342 | } | 342 | } | ||
343 | 343 | | |||
344 | d->mPluginMenu->removeAction(d->mLoadingAction); | 344 | d->mPluginMenu->removeAction(d->mLoadingAction); | ||
345 | if (d->mPluginMenu->isEmpty()) { | 345 | if (d->mPluginMenu->isEmpty()) { | ||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |