Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinviewactionhandler.cpp
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Line(s) | 90 | { | |||
---|---|---|---|---|---|
263 | KToggleAction* showInGroups = m_actionCollection->add<KToggleAction>(QStringLiteral("show_in_groups")); | 263 | KToggleAction* showInGroups = m_actionCollection->add<KToggleAction>(QStringLiteral("show_in_groups")); | ||
264 | showInGroups->setIcon(QIcon::fromTheme(QStringLiteral("view-group"))); | 264 | showInGroups->setIcon(QIcon::fromTheme(QStringLiteral("view-group"))); | ||
265 | showInGroups->setText(i18nc("@action:inmenu View", "Show in Groups")); | 265 | showInGroups->setText(i18nc("@action:inmenu View", "Show in Groups")); | ||
266 | showInGroups->setWhatsThis(i18nc("@info:whatsthis", "This groups files and folders by their first letter.")); | 266 | showInGroups->setWhatsThis(i18nc("@info:whatsthis", "This groups files and folders by their first letter.")); | ||
267 | connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting); | 267 | connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting); | ||
268 | 268 | | |||
269 | KToggleAction* showHiddenFiles = m_actionCollection->add<KToggleAction>(QStringLiteral("show_hidden_files")); | 269 | KToggleAction* showHiddenFiles = m_actionCollection->add<KToggleAction>(QStringLiteral("show_hidden_files")); | ||
270 | showHiddenFiles->setText(i18nc("@action:inmenu View", "Hidden Files")); | 270 | showHiddenFiles->setText(i18nc("@action:inmenu View", "Hidden Files")); | ||
271 | showHiddenFiles->setToolTip(i18nc("@info", "Visibility of hidden files and folders")); | | |||
272 | showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When " | 271 | showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When " | ||
273 | "this is enabled <emphasis>hidden</emphasis> files and folders " | 272 | "this is enabled <emphasis>hidden</emphasis> files and folders " | ||
274 | "are visible. They will be displayed semi-transparent.</para>" | 273 | "are visible. They will be displayed semi-transparent.</para>" | ||
275 | "<para>Hidden items only differ from other ones in that their " | 274 | "<para>Hidden items only differ from other ones in that their " | ||
276 | "name starts with a \".\". In general there is no need for " | 275 | "name starts with a \".\". In general there is no need for " | ||
277 | "users to access them which is why they are hidden.</para>")); | 276 | "users to access them which is why they are hidden.</para>")); | ||
278 | m_actionCollection->setDefaultShortcuts(showHiddenFiles, {Qt::ALT + Qt::Key_Period, Qt::CTRL + Qt::Key_H, Qt::Key_F8}); | 277 | m_actionCollection->setDefaultShortcuts(showHiddenFiles, {Qt::ALT + Qt::Key_Period, Qt::CTRL + Qt::Key_H, Qt::Key_F8}); | ||
279 | connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles); | 278 | connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles); | ||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |