Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinviewactionhandler.cpp
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Line(s) | 90 | { | |||
---|---|---|---|---|---|
278 | showHiddenFiles->setText(i18nc("@action:inmenu View", "Show Hidden Files")); | 278 | showHiddenFiles->setText(i18nc("@action:inmenu View", "Show Hidden Files")); | ||
279 | showHiddenFiles->setToolTip(i18nc("@info", "Visibility of hidden files and folders")); | 279 | showHiddenFiles->setToolTip(i18nc("@info", "Visibility of hidden files and folders")); | ||
280 | showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When " | 280 | showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When " | ||
281 | "this is enabled <emphasis>hidden</emphasis> files and folders " | 281 | "this is enabled <emphasis>hidden</emphasis> files and folders " | ||
282 | "are visible. They will be displayed semi-transparent.</para>" | 282 | "are visible. They will be displayed semi-transparent.</para>" | ||
283 | "<para>Hidden items only differ from other ones in that their " | 283 | "<para>Hidden items only differ from other ones in that their " | ||
284 | "name starts with a \".\". In general there is no need for " | 284 | "name starts with a \".\". In general there is no need for " | ||
285 | "users to access them which is why they are hidden.</para>")); | 285 | "users to access them which is why they are hidden.</para>")); | ||
286 | m_actionCollection->setDefaultShortcuts(showHiddenFiles, {Qt::ALT + Qt::Key_Period, Qt::CTRL + Qt::Key_H, Qt::Key_F8}); | 286 | m_actionCollection->setDefaultShortcuts(showHiddenFiles, KStandardShortcut::showHideHiddenFiles()); | ||
287 | connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles); | 287 | connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles); | ||
288 | 288 | | |||
289 | QAction* adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties")); | 289 | QAction* adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties")); | ||
290 | adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Display Style...")); | 290 | adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Display Style...")); | ||
291 | adjustViewProps->setIcon(QIcon::fromTheme(QStringLiteral("view-choose"))); | 291 | adjustViewProps->setIcon(QIcon::fromTheme(QStringLiteral("view-choose"))); | ||
292 | adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window " | 292 | adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window " | ||
293 | "in which all folder view properties can be adjusted.")); | 293 | "in which all folder view properties can be adjusted.")); | ||
294 | connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties); | 294 | connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties); | ||
▲ Show 20 Lines • Show All 417 Lines • Show Last 20 Lines |