┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-10-15Fix double-click view background featureFelix Ernst
c934e803647674b4692668f047b6ffa18121982a was meant to change the double-click view background feature to only allow double-clicks with the left mouse button. However, it mistakenly did the exact opposite and allowed every double-click except ones with the left mouse button to trigger the feature. This one-liner fixes this.
2024-10-14Add context menu items to Trash view and itemsEren Karakas
Sort by and View mode are already available through hamburger menu; cut and copy are already available through shortcuts BUG: 493808 BUG: 476955
2024-10-12dolphinview: when rename dialog finishes, immediately update the model and ↵Jin Liu
the selection On sucessful return of the rename dialog, we update the model and the selection immediately to reflect the new name. This is to avoid the short duration after the rename during which the selection is lost. Currently, after the rename dialog finishes, the selection is briefly lost for about 1 second until the view automatically refreshes. This patch updates the model and selection immediately after the dialog finishes, so the renamed file is still selected. BUG: 481717
2024-10-12dolphinview: after inline renaming, immediately update the selectionJin Liu
Currently, the inline renaming updates the model and the list of selected files (m_selectedUrls) immediately after the user presses enter, but the selection in the view is not immediately updated. This results in the selection to be briefly lost for about 1 second until the view automatically refreshes. This patch updates the selection immediately after the user presses enter, so the renamed file is still selected. BUG: 481717
2024-10-12KFileItemModel: fix `setData` in the renaming usageJin Liu
The `setData` function is used by inline renaming to update the `text` role (i.e. file name) in the model before actually do the renaming. However, the current implementation only updates `text` and url in KFileItem in this case, leaving the `url` role and the `m_items` cache untouched. This makes the cache incoherent, so `index()` won't find the renamed item. It also makes the `url` role incoherent with the `text` role. This also fixes the problem mentioned in bug #481561 where when inline renaming fails, it still shows the new name. (Because `m_model->index` fails to find the new name and rename it back on job failure.) BUG: 481561
2024-10-11dolphinview: add error message when renaming failed in dialog modeJin Liu
BUG: 481561
2024-10-08daemon: prevent daemon to quit on `openNewWindow`Jin Liu
2024-10-08Accessibility: Fix message boxes not being announcedFelix Ernst
This commit moves the focus to the message of newly shown passive messages when accessibility software is used. Moving focus to an object generally means that it will be announced, so this makes sure that users of accessibility software know when they are being notified of a change.
2024-10-08DolphinViewContainer: Delay changing the urlAmol Godbole
KCoreDirLister::itemsDeleted() signal is being emitted twice for the same url. This results in Dolphin displaying an incorrect location. Delay changing the url instead of delaying DolphinView::currentDirectoryRemoved() so that the check for current directory being removed in KFileItemModel::slotItemsDeleted() occurs correctly, while still ensuring that KCoreDirLister is not prematurely modified. BUG: 492277, BUG: 473377
2024-10-06GIT_SILENT Update Appstream for new releaseHeiko Becker
(cherry picked from commit 2f8b55cd88ebaa258a04a01b7b789592bb064fe2)
2024-09-30GIT_SILENT made messages (after extraction)l10n daemon script
2024-09-29Add missing include mocLaurent Montel
2024-09-27SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-09-26Dolphinpart: Define KPart capabilities instead of deprecated ServiceTypesAlexander Lohnau
By now, Konqueror uses the new mechanism introduced in https://invent.kde.org/frameworks/kparts/-/merge_requests/86. Thus, we can avoid using the deprecated SeviceTypes which are also removed from the official KPluginMetaData API.
2024-09-26MoveToNewFolderAction: Remove unneeded ServiceType definition from metadataAlexander Lohnau
2024-09-20GIT_SILENT made messages (after extraction)l10n daemon script
2024-09-19Ignore trailing slashes when comparing place URLsWolfgang Müller
There's two locations where place URLs are compared in Dolphin. One is in DolphinContextMenu::placeExists, which determines whether or not to show an "Add to Places" context menu entry. The other one is in DolphinViewContainer::caption, which provides the place name for use in the window title, if applicable. Neither of these functions correctly normalize the URL to account for trailing slashes. Whilst placeExists() does not even attempt it, caption() was changed in 681d8bb6c (Fix wrong window titles, 2019-09-15) to support this using a regular expression. However, caption() fails to escape the URL before incorporating it in the regular expression, leading to failed matches and errors like the following when browsing to directories that do not happen to make up a valid regular expression: QString(View)::contains(): called on an invalid QRegularExpression object (pattern is '\A(?:file:///home/foo/[Z-A]/?)\z') Instead of relying on complex and possibly brittle regular expressions, use KFilePlacesModel's closestItem() function to find the closest matching URL and then finally check whether the normalized URLs match exactly.
2024-09-17dolphintrash.cpp: Update trash dir on device changesAkseli Lahtinen
Make sure we update the trash directory when storage devices are added/changed. This ensures that whenever a mounted device, for example USB stick is mounted/unmounted, the contents are properly updated in the trash folder as well. Otherwise the trash folder and USB stick trash folder will get out of sync, making the trash folder behavior unpredictable. BUG:493247
2024-09-15ViewProperties: sort by accesstime for recentlyusedMéven Car
By default. Since recentlyused:/ fills only access time based on the DB data. timeline:/ is also included. CCBUG: 437382
2024-09-06GIT_SILENT Update Appstream for new releaseHeiko Becker
(cherry picked from commit f8f4c5bc12fa14cfa3efb800049a3efeb9a84189)
2024-09-02[terminal] Don't try to change dir into an empty URLNicolas Fella
SENTRY: DOLPHIN-2Q4
2024-09-02Don't crash when there is no view container yetNicolas Fella
SENTRY: DOLPHIN-2Q3
2024-08-30settings: Fix the Use Current Location buttonAkseli Lahtinen
During the Dolphin settings revamp (https://invent.kde.org/system/dolphin/-/commit/489b56b68bb29e81337e115c490eea4403001b71?) this QUrl had been forgot to add back so that the FoldersTabsSettingsPage knows what is the current url. This change checks for the main window of dolphin, then gets the URL of it whenever useCurrentLocation is called. However, when this is used as KCM, the button is not created, since there it doesn't make sense. BUG:491753
2024-08-28Make settings tabbar expandingCarl Schwan
Allow to use https://invent.kde.org/plasma/breeze/-/merge_requests/478 but even without the breeze MR, it look better and similar to what we do with other settings page.
2024-08-28KItemListRoleEditor: minimize resize() occurencesMéven Car
Adjust document width to match its widget width. BUG: 479695
2024-08-28SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-27SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-27GIT_SILENT made messages (after extraction)l10n daemon script
2024-08-26SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-23Use QLocale to display localized time role groupJérôme Lécuyer
Use QLocale to format the QDateTime displayed as the role/label of a group. `QDateTime::toString` format the date and month names in English. `QLocale::toString` returns them localized. See the note about day and month names at https://doc.qt.io/qt-6/qdatetime.html#toString BUG: 488088
2024-08-20SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-20GIT_SILENT made messages (after extraction)l10n daemon script
2024-08-19Fix middle-click not following the "Open archives as folder" settingJin Liu
Previous to this commit middle-clicking an archive would always open it in a new tab. This contradicts the recent change d27ee07de7558470ef7b497fbe3d3504ce7cad07 which made it so middle-click would open an item in the second application that is available to open a file. With this commit, middle-clicking will treat the archive like a folder only when GeneralSettings::browseThroughArchives is enabled or when there is no second application available. Otherwise middle-click will open the archive in the second available application.
2024-08-18Implement "Focus Places Panel"Felix Ernst
This commit implements an action to move focus to the Places panel analogous to "Focus Terminal Panel" functionality-wise. The implementation of the "Focus Terminal Panel" and "Focus Places Panel" actions is streamlined while improving their code quality. The "Focus Terminal Panel" action is moved into the "Show Panels" sub-menu because it makes more sense to be there considering that its previous location (the "Tools" menu) is meant for external applications and not for functionality internal to Dolphin. This commit also makes it so the keyboard focus is moved to and from the Places panel whenever it is toggled visible or invisible. This is now consistent with the focus handling when the Terminal panel is shown or hidden. The "Focus Places Panel" is one of the actions which was wished for in KDE's accessibility chat room because people relying on keyboard controls might need to press the Tab key a lot to move from the view to the Places panel. The new default shortcut is Ctrl+P.
2024-08-17KStandardItemListWidget: remove obselete commentYifan Zhu
2024-08-17Make FoldersTabsSettingsPage fully usable for blind usersFelix Ernst
This commit fixes keyboard navigation for the "Folders & Tabs" page in Dolphin's settings dialog. It also makes sure that the Orca screen reader reads out sufficient information for every widget that can get keyboard focus. These two groups of fixes together should allow basic usage of this settings page for users relying on keyboard controls and screen readers. One weirdness prior to this commit was that for checkboxes with a short group label in front and the full description behind screen readers would only read out the label and skip the explanation what the checkbox actually does. This commit fixes this by explicitly setting the accessible text for the label. In practice only reading out the explanation and skipping the label seemed sufficient and is implemented here, but more specific text could be provided using this mechanism if needed.
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.
2024-08-16DolphinSettingsDialog: Move focus to Okay button lastFelix Ernst
This commit changes the Tab order in Dolphin's Configure dialog so that the items which are visually at the end of the dialog are also last in the keyboard focus order when cycling through the interface using the Tab key. Previously, the "Cancel", "Defaults", "Okay", and "Apply" buttons received focus prior to the actual contents of the pages which does not make sense from a workflow perspective. This change should also make navigating this dialog easier when relying on screen readers because reading those buttons out prior to users even having a chance to change any setting did not make any sense.
2024-08-16Fix display of filename ampersands in actionsJohn Veness
If you added the "Actions for..." button to the toolbar, filenames that contain "&" would not appear correctly in that button. This MR fixes that, and also the button that appears when using "Delete" with selection mode. BUG: 491684
2024-08-16Only accept left mouse button for double click actionsMéven Car
Such * double click background BUG: 485295
2024-08-15GIT_SILENT Update Appstream for new releaseHeiko Becker
(cherry picked from commit d80d4647c96d19b1926fc5edb9b84224cee462c4)
2024-08-13KStandardItemListWidget: select by number of unicode charsYifan Zhu
Previously during rename, the number of QChar is used for selection, which might be different from number of unicode characters. Test plan: - create the file zz❤️❤️.txt - rename the file - verify that the first 4 characters are correctly selected, which didn't work before the patch. BUG: 466814
2024-08-12Set up KCrash after KAboutData::setApplicationData()Laurent Montel
2024-08-10SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-10GIT_SILENT made messages (after extraction)l10n daemon script
2024-08-05SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-05GIT_SILENT made messages (after extraction)l10n daemon script
2024-07-31Kitemlistcontroller: only accept doubleclick for left mouse buttonMéven Car
Add test for double-click activation. BUG: 485295
2024-07-28SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-07-27Port from KIconLoader::drawOverlays to KIconUtils::addOverlaysNicolas Fella
The latter is what most other projects use