Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinviewactionhandler.cpp
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 90 | { | |||
---|---|---|---|---|---|
275 | adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window " | 275 | adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window " | ||
276 | "in which all folder view properties can be adjusted.")); | 276 | "in which all folder view properties can be adjusted.")); | ||
277 | connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties); | 277 | connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties); | ||
278 | } | 278 | } | ||
279 | 279 | | |||
280 | QActionGroup* DolphinViewActionHandler::createFileItemRolesActionGroup(const QString& groupPrefix) | 280 | QActionGroup* DolphinViewActionHandler::createFileItemRolesActionGroup(const QString& groupPrefix) | ||
281 | { | 281 | { | ||
282 | const bool isSortGroup = (groupPrefix == QLatin1String("sort_by_")); | 282 | const bool isSortGroup = (groupPrefix == QLatin1String("sort_by_")); | ||
283 | Q_ASSERT(isSortGroup || (!isSortGroup && groupPrefix == QLatin1String("show_"))); | 283 | Q_ASSERT(isSortGroup || groupPrefix == QLatin1String("show_")); | ||
284 | 284 | | |||
285 | QActionGroup* rolesActionGroup = new QActionGroup(m_actionCollection); | 285 | QActionGroup* rolesActionGroup = new QActionGroup(m_actionCollection); | ||
286 | rolesActionGroup->setExclusive(isSortGroup); | 286 | rolesActionGroup->setExclusive(isSortGroup); | ||
287 | if (isSortGroup) { | 287 | if (isSortGroup) { | ||
288 | connect(rolesActionGroup, &QActionGroup::triggered, | 288 | connect(rolesActionGroup, &QActionGroup::triggered, | ||
289 | this, &DolphinViewActionHandler::slotSortTriggered); | 289 | this, &DolphinViewActionHandler::slotSortTriggered); | ||
290 | } else { | 290 | } else { | ||
291 | connect(rolesActionGroup, &QActionGroup::triggered, | 291 | connect(rolesActionGroup, &QActionGroup::triggered, | ||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |