┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places
AgeCommit message (Collapse)Author
2026-02-11panels/panels: handle lifetime of internal actionsMéven Car
Preventing a mem-leak on process leave.
2025-09-26placespanel: Fix default width by moving things from showEvent to constructorTem PQD
Move instantiation, setModel, and some connections to constructor and remove showEvent. This was being done in an erroneous lazy order which led to the places panel's sizeHint not being called properly. Also removes the double loading workaround in setUrl, which is no longer needed either. BUG: 449070
2025-03-04Use nicer split iconNate Graham
This is the icon that Konsole uses, and it communicates the point better than the current one. Related to #68
2025-03-03placespanel: Use correct loop index when connecting device signalsWang Yu
The loop in slotRowsInserted was using the 'first' parameter instead of the loop variable 'i', causing only the first index to be connected multiple times.
2024-07-01Revert "DragAndDropHelper::updateDropAction: use StatJob for remote URLs"Felix Ernst
This reverts commit dc149ec5e52f52c514cf362603d05ba8eea506b8. This prevents a crash. One issue identified is that the commit that I am reverting here accesses a QDropEvent at a moment in time in which it might have already been deleted. We cannot check if it exists by that time because we do not control its lifetime and it is not a QObject.
2024-02-29DragAndDropHelper::updateDropAction: use StatJob for remote URLsJin Liu
When dragging onto tabs/Places from a remote URL, we don't process the QDropEvent immediately, but start a StatJob and process the event when it finishes. Also, the result of the StatJob is cached for 30 seconds, to avoid starting duplicate jobs.
2024-02-17Improve DnD handling in read-only dirsJin Liu
1. Places panel and tabbar update drag status in read-only dir 2. Don't create drop job in readonly directories
2023-11-26Places Panel: Swap "Open in Split View" and "Configure Trash"Kai Uwe Broulik
Ensure the "open" actions are all in a row.
2023-09-10Merge remote-tracking branch 'origin/master' into kf6Mé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-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-05-08Merge branch 'master' into kf6Méven Car
2023-05-07Port to Qt6Méven Car
2023-04-03PlacesPanel: clean some warningsMéven Car
NO_CHANGELOG
2023-02-05Add clang-format and format code as in FrameworksSerg Podtynnyi
2022-11-29Places Panel: Delegate open file error to KIOKai Uwe Broulik
This functionality is now provided by `KFilePlacesModel` as long as you tell it to do the teardown rather than calling into the device yourself.
2022-09-26Remove unused includesLaurent Montel
2022-08-24Don't show error message on ERR_USER_CANCELEDKai Uwe Broulik
There's no point telling the user what they just did. After https://invent.kde.org/frameworks/kio/-/commit/f192c133eb01bc8448d5ddd97fe20f8e6dbc467d this error has a text associated with it, so it might show up in the UI.
2022-08-22Places Panel: Don't show error message on UserCanceledKai Uwe Broulik
There's no point telling the user what they just did
2022-03-04[Places Panel] Reject drops on unwritable locationsKai Uwe Broulik
Indicate that you cannot drop here. Avoids a "Cannot drop file" or "not supported" error when dropping files ontop of a search or timeline URL. It is done in Dolphin rather than the library as there we cannot assume what a consumer might be doing with the drop.
2022-02-07[Places Panel] Make use of KFilePlacesView::dragAutoActivationDelayKai Uwe Broulik
Code moved to KIO
2022-01-24[Places Panel] Stop drag activation timer when droppingKai Uwe Broulik
Avoids switching folders after a drop while interacting with the Copy/Move/Link menu.
2022-01-09Port back to KFilePlacesViewKai Uwe Broulik
This removes the custom-view engine version of the places panel and replaces it with the upstream `KFilePlacesView` from KIO.
2021-12-28kitemlistview: Port KItemListView::itemAt to std::optionalFushan Wen
Use `value_or(-1)` for those functions that don't use `std::optional`.
2021-12-17Enable Ctrl/Shift-Click to open folder in a new tab/windowAlessio Bonfiglio
and more
2021-12-01Port away from deprecated QDateTime::.toTime_t methodAlexander Lohnau
2021-11-02Remove duplicate include from .h/.cppLaurent Montel
2021-07-18[PlacesPanel] Remove horizontal scrollbarEugene Popov
This MR removes the horizontal scrollbar of the Places panel. For titles that don't fit in the panel, their elided versions will be used (i.e., with ...). BUG: 301758
2021-05-29Revert "Improve padding in the Places View"Eugene Popov
This reverts commit e9a39700fc004004b1ff231023e9d5333a2b8317.
2021-05-29Revert "fix padding in places view"Eugene Popov
This reverts commit 56888a567fc741713b6c905aeed3842a7fa230c7.
2021-05-29Use SmallMedium icon size in the Places panel as defaultEugene Popov
This patch makes the Places panel to use SmallMedium icon size as default, making it easier to read. It also removes extra spacing from items with small icons (reverts e9a39700 and 56888a56). BUG: 437345
2021-05-20Add action to places panel context menu trash entry to open trash settingsSaravanan K
BUG: 367583 FIXED-IN: 21.08
2021-04-19fix padding in places viewHarald Sitter
padding was only applied when the icon size was applied, the icon size however is only applied when the user had set an explicit size. this resulted in inconsistent spacing. by default no padding would be used if the user had changed the icon size to medium and back to small it would suddenly have padding. to fix this, set padding unconditionally on construction and never touch it again . BUG: 435731
2021-02-14Remove a missing emit KEYWORDMéven Car
NO_CHANGELOG
2021-02-09Build with QT_NO_KEYWORDSNicolas Fella
2021-02-09Add missing includesNicolas Fella
2020-12-17Fix crash when device with capacitybar is draggedChris Holland
BUG: 430441
2020-12-15Fix KIO warning when URL is emptyDavid Faure
2020-11-23Places panel: highlight place only when it is displayedMéven Car
BUG: 156678 FIXED-IN: 20.12
2020-11-16PlacesPanel: tooltip, use toLocalFile instead of pathMéven Car
To avoid Windows compatiblity issues.
2020-11-10Places panel: show a tooltip after 500 msMéven Car
BUG: 426455 FIXED-IN: 20.12
2020-11-09PlacesItemListWidget: Use Solid to check if device is a network shareMéven Car
2020-11-04Use QDeadlineTimer instead of QDateTime.Chris Holland
Use early returns instead of deeply nested if/else.
2020-11-04Cleanup importsChris Holland
2020-11-04Remove wip debuggingChris Holland
2020-11-04Fix freeSpaceInfo cache not being reset.Chris Holland
2020-11-04Use KDE GitLab url instead of the GitHub mirrorChris Holland
2020-11-04Cleanup unused colors. Use const. Use KColorScheme danger.Chris Holland
The draw code is more like the last state of D21312 now.
2020-11-04Refactor capacity by to use async KIO FreeSpaceJob.Chris Holland
Based on this kio filepicker patch: https://github.com/KDE/kio/commit/933887dc334f3498505af7a86d25db7faae91019