Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 1079 Lines • ▼ Show 20 Line(s) | 1039 | { | |||
---|---|---|---|---|---|
1080 | // (e. g. to "Paste One Folder"). To prevent that the size of the toolbar changes | 1080 | // (e. g. to "Paste One Folder"). To prevent that the size of the toolbar changes | ||
1081 | // due to the long text, the text "Paste" is used: | 1081 | // due to the long text, the text "Paste" is used: | ||
1082 | paste->setIconText(i18nc("@action:inmenu Edit", "Paste")); | 1082 | paste->setIconText(i18nc("@action:inmenu Edit", "Paste")); | ||
1083 | 1083 | | |||
1084 | KStandardAction::find(this, &DolphinMainWindow::find, actionCollection()); | 1084 | KStandardAction::find(this, &DolphinMainWindow::find, actionCollection()); | ||
1085 | 1085 | | |||
1086 | QAction* selectAll = actionCollection()->addAction(QStringLiteral("select_all")); | 1086 | QAction* selectAll = actionCollection()->addAction(QStringLiteral("select_all")); | ||
1087 | selectAll->setText(i18nc("@action:inmenu Edit", "Select All")); | 1087 | selectAll->setText(i18nc("@action:inmenu Edit", "Select All")); | ||
1088 | selectAll->setIcon(QIcon::fromTheme(QStringLiteral("edit-select-all"))); | ||||
1088 | actionCollection()->setDefaultShortcut(selectAll, Qt::CTRL | Qt::Key_A); | 1089 | actionCollection()->setDefaultShortcut(selectAll, Qt::CTRL | Qt::Key_A); | ||
1089 | connect(selectAll, &QAction::triggered, this, &DolphinMainWindow::selectAll); | 1090 | connect(selectAll, &QAction::triggered, this, &DolphinMainWindow::selectAll); | ||
1090 | 1091 | | |||
1091 | QAction* invertSelection = actionCollection()->addAction(QStringLiteral("invert_selection")); | 1092 | QAction* invertSelection = actionCollection()->addAction(QStringLiteral("invert_selection")); | ||
1092 | invertSelection->setText(i18nc("@action:inmenu Edit", "Invert Selection")); | 1093 | invertSelection->setText(i18nc("@action:inmenu Edit", "Invert Selection")); | ||
1094 | invertSelection->setIcon(QIcon::fromTheme(QStringLiteral("edit-select-invert"))); | ||||
1093 | actionCollection()->setDefaultShortcut(invertSelection, Qt::CTRL | Qt::SHIFT | Qt::Key_A); | 1095 | actionCollection()->setDefaultShortcut(invertSelection, Qt::CTRL | Qt::SHIFT | Qt::Key_A); | ||
1094 | connect(invertSelection, &QAction::triggered, this, &DolphinMainWindow::invertSelection); | 1096 | connect(invertSelection, &QAction::triggered, this, &DolphinMainWindow::invertSelection); | ||
1095 | 1097 | | |||
1096 | // setup 'View' menu | 1098 | // setup 'View' menu | ||
1097 | // (note that most of it is set up in DolphinViewActionHandler) | 1099 | // (note that most of it is set up in DolphinViewActionHandler) | ||
1098 | 1100 | | |||
1099 | QAction* split = actionCollection()->addAction(QStringLiteral("split_view")); | 1101 | QAction* split = actionCollection()->addAction(QStringLiteral("split_view")); | ||
1100 | actionCollection()->setDefaultShortcut(split, Qt::Key_F3); | 1102 | actionCollection()->setDefaultShortcut(split, Qt::Key_F3); | ||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |