┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/contextmenu/contextmenusettingspage.cpp
AgeCommit message (Collapse)Author
2025-10-23contextmenusettings: Add a tooltip with plugin fileNameMéven Car
2025-09-22itemactions: Add context menu actions to hide and unhide files using .hiddenKostiantin Korchuhanov
Summary: This patch introduces context menu actions that allow users to hide or unhide selected files by editing the .hidden file in their parent directories. What this patch does: - Implemented HideFileItemAction plugin based on KAbstractFileItemActionPlugin - Plugin is disabled by default unless explicitly enabled in kservicemenurc via the hidefileitemaction key - "Hide" action adds selected file names to the .hidden file, avoiding duplicates - "Unhide" action removes selected file names from the .hidden file - Action visibility logic: - If only visible or only hidden files are selected, only the relevant action is shown - If both are selected, both "Hide" and "Unhide" actions are shown - Write permission checks ensure actions are disabled if the .hidden file cannot be modified - Optimized redundant path computations by calculating parent directory and .hidden file paths once and reusing them
2024-08-16ContextMenuSettingsPage: Stop forcing focus onto search fieldFelix Ernst
Prior to this commit when switching between categories in Dolphin's settings dialog by keyboard, the focus would suddenly switch away from the category chooser when going over the "Context Menu" category. This meant that one couldn't move to the Trash category in a straightforward way but had to fight the focus change forced by Dolphin. This commit removes that forced focus change so the category can now be changed by keyboard as expected.
2023-11-08Adapt to KConfigGroup name officially being a QString typeFriedrich W. H. Kossebau
GIT_SILENT
2023-10-24Merge branch 'master' into kf6Nicolas Fella
2023-10-24Process correct model when applying service menu changesNicolas Fella
The listview's model is a filter model, we must iterate through the source, otherwise we get incorrect results BUG: 475547
2023-10-22Remove unused includeNicolas Fella
2023-10-21Port away from KDesktopFileActions::userDefinedServicesAlexander Lohnau
This is planned to go away since the only real user being kdesvn and that is ported to a C++ plugin
2023-09-10Merge remote-tracking branch 'origin/master' into kf6Méven Car
2023-09-10Replace qAsConst with std::as_constMéven Car
2023-09-09Add open in split view actionEric Armbruster
This action is shown only if a single folder is selected. The action opens the selected folder in the inactive split view (and opens the split view if necessary). FEATURE: 465500
2023-08-29Fix a bunch of clazy warningsMéven Car
2023-08-28Clean obsolete ifdefs since dolphin requires KF 5.101+Méven Car
2023-07-09Replace ServiceItemDelegate with standard Qt item delegateNicolas Fella
We don't need a custom delegate here Using the standard one from Qt also slightly improves margins
2023-07-09Fix usage of Qt::CheckStateRole in preview modelNicolas Fella
Qt::CheckStateRole expects an enum, not a bool Also set the flag that the item it user checkable, otherwise it can't be changed BUG: 471999
2023-07-08Fix plugin queryNicolas Fella
QT_MAJOR_VERSION is undefined, the proper thing is QT_VERSION_MAJOR This causes the plugin query to not find any plugins Since we only target KF6 we might as well hardcode that
2023-07-05Merge branch 'master' into kf6Nicolas Fella
2023-07-05Add explicit moc includes to sources for moc-covered headersFriedrich W. H. Kossebau
* speeds up incremental builds as changes to a header will not always need the full mocs_compilation.cpp for all the target's headers rebuild, while having a moc file sourced into a source file only adds minor extra costs, due to small own code and the used headers usually already covered by the source file, being for the same class/struct * seems to not slow down clean builds, due to empty mocs_compilation.cpp resulting in those quickly processed, while the minor extra cost of the sourced moc files does not outweigh that in summary. Measured times actually improved by some percent points. (ideally CMake would just skip empty mocs_compilation.cpp & its object file one day) * enables compiler to see all methods of a class in same compilation unit to do some sanity checks * potentially more inlining in general, due to more in the compilation unit * allows to keep using more forward declarations in the header, as with the moc code being sourced into the cpp file there definitions can be ensured and often are already for the needs of the normal class methods
2023-06-29Use ellipsis everywhere instead of three dotsTem PQD
Better for screen readers etc.
2023-05-12Remove deprecated, ifdef'd code for old KIO versionsJakob Petsovits
2023-05-08Merge branch 'master' into kf6Méven Car
2023-05-07Port to Qt6Méven Car
2023-04-02Context menu: allow to show copy to/move to inactive split viewMéven Car
Prevent copying/moving to same folder as origin when copying/moving to inactive split view BUG: 356436
2023-03-04Remove deprecated KServiceTypeTraderDāvis Mosāns
2023-02-14Revert "Remove deprecated KServiceTypeTrader"Méven Car
This reverts commit 648c2db6e4c6552962c20d2f9e4d3ce44e02d212.
2023-02-10Remove deprecated KServiceTypeTraderDāvis Mosāns
2023-02-05Add clang-format and format code as in FrameworksSerg Podtynnyi
2022-10-15Port away from deprecated KMessageBox Yes/NoFriedrich W. H. Kossebau
GIT_SILENT
2022-06-11Fix install/load plugins from kf<version>Laurent Montel
2022-05-31We depend against kf5.91 => remove checkLaurent Montel
2022-05-31KServiceTypeTrader has been deprecated since KService 5.90Ahmad Samir
2022-05-31Fix version macro with respect to finding "KFileItemAction/Plugin" servicesAhmad Samir
GIT_SILENT
2022-05-31Port away from deprecated KNewStuff APIAhmad Samir
2022-05-31Merge two relevant ifdef blocksAhmad Samir
GIT_SILENT
2022-05-02Re-add "Open Terminal Here" featureoioi 555
This is equivalent to the "Open Terminal Here" feature that existed until Version 20.12. If the user has selected folders, replace "Open Terminal" in the context menu with "Open Terminal Here". When more than 5 folders are selected, a modal window will ask the user if they are sure they want to open all 6 or more terminal windows. In Detail View, users can also select a file, which will open a terminal at the location of that file. BUG: 452637 FIXED-IN: 22.08
2022-01-02Load service menus for settings from new file locationAlexander Lohnau
This is a replacement for the KServiceTypeTrader loading. Because third parties still use the KServiceTypeTrader file location, we need to support both for the time being.
2022-01-02Version control plugins: Remove defunct KServiceTypeTrader query for ↵Alexander Lohnau
available plugins We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings
2021-12-01Port away from deprecated KDesktopFileActions::userDefinedServices overloadAlexander Lohnau
2021-12-01Port away from deprecated KPluginLoaderAlexander Lohnau
2021-10-11Currently, when changing Version Control settings in Configure -> Context ↵Blaster goo
Menu, it tells you to restart to apply those settings. This commit changes that by asking you if you would like to restart now or later. FEATURE: 441192 FIXED-IN: 21.12
2021-05-25[src/settings/contextmenu/contextmenusettingspage] Fix Crash because of nullptrÖmer Fadıl Usta
BUG: 437539
2021-05-10DolphinContextMenu: Allow disabling "Open Terminal" actionAlexander Lohnau
BUG: 436323 FIXED-IN: 21.08
2021-05-10Put code for desktop file plugin loading in KIO version checkAlexander Lohnau
Loading plugins by their desktop files was deprecated in https://invent.kde.org/frameworks/kio/-/merge_requests/416. Task: https://phabricator.kde.org/T12250
2021-04-05Port the VCS plugin system to KPluginLoaderTobias Fella
The loader looks for the plugins in ${QT_PLUGIN_PATH}/dolphin/vcs. The old method of loading the plugins is kept around for now, to support external, legacy plugins.
2020-12-28Add constDuong Do Minh Chau
2020-12-28Apply Elvis suggestionsChau Duong
2020-12-28Share actions with main window to avoid duplicating icon name and textDuong Do Minh Chau
2020-12-28Add options to hide some context menu entriesDuong Do Minh Chau
This commit add options to hide the following context menu entries: - Add to Places - Copy Location - Duplicate Here - Open in New Tab and Open in New Tabs - Open in New Window - Sort By - View Mode The Services settings page is renamed to Context Menu ShowCopyMoveMenu option is moved from GeneralSettings to ContextMenuSettings BUG: 314594