Changeset View
Changeset View
Standalone View
Standalone View
src/ktoolbar.cpp
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Line(s) | 306 | if (!context) { | |||
---|---|---|---|---|---|
323 | const auto orientActions = contextOrient->actions(); | 323 | const auto orientActions = contextOrient->actions(); | ||
324 | for (QAction *action : orientActions) { | 324 | for (QAction *action : orientActions) { | ||
325 | action->setActionGroup(positionGroup); | 325 | action->setActionGroup(positionGroup); | ||
326 | action->setCheckable(true); | 326 | action->setCheckable(true); | ||
327 | } | 327 | } | ||
328 | 328 | | |||
329 | contextMode = new QMenu(i18n("Text Position"), context); | 329 | contextMode = new QMenu(i18n("Text Position"), context); | ||
330 | 330 | | |||
331 | contextIcons = contextMode->addAction(i18n("Icons Only"), q, SLOT(slotContextIcons())); | 331 | contextIcons = contextMode->addAction(i18nc("@item:inmenu", "Icons Only"), q, SLOT(slotContextIcons())); | ||
332 | contextText = contextMode->addAction(i18n("Text Only"), q, SLOT(slotContextText())); | 332 | contextText = contextMode->addAction(i18nc("@item:inmenu", "Text Only"), q, SLOT(slotContextText())); | ||
333 | contextTextRight = contextMode->addAction(i18n("Text Alongside Icons"), q, SLOT(slotContextTextRight())); | 333 | contextTextRight = contextMode->addAction(i18nc("@item:inmenu", "Text Alongside Icons"), q, SLOT(slotContextTextRight())); | ||
334 | contextTextUnder = contextMode->addAction(i18n("Text Under Icons"), q, SLOT(slotContextTextUnder())); | 334 | contextTextUnder = contextMode->addAction(i18nc("@item:inmenu", "Text Under Icons"), q, SLOT(slotContextTextUnder())); | ||
335 | 335 | | |||
336 | QActionGroup *textGroup = new QActionGroup(contextMode); | 336 | QActionGroup *textGroup = new QActionGroup(contextMode); | ||
337 | const auto modeActions = contextMode->actions(); | 337 | const auto modeActions = contextMode->actions(); | ||
338 | for (QAction *action : modeActions) { | 338 | for (QAction *action : modeActions) { | ||
339 | action->setActionGroup(textGroup); | 339 | action->setActionGroup(textGroup); | ||
340 | action->setCheckable(true); | 340 | action->setCheckable(true); | ||
341 | } | 341 | } | ||
342 | 342 | | |||
▲ Show 20 Lines • Show All 1078 Lines • Show Last 20 Lines |