┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/bottombarcontentscontainer.cpp
AgeCommit message (Collapse)Author
2026-01-22clang-format: readability-avoid-return-with-void-valueMéven Car
2026-01-22clang-tidy: fix modernize-loop-convertMéven Car
2026-01-10Use Q_ASSERT instead of Q_CHECK_PTR for plain checks of pointer valueFriedrich W. H. Kossebau
Q_CHECK_PTR (other than the name suggests) is intended only to check the success of memory allocations. Using it for any pointers instead can be misleading due to the "Out of memory" log printed in case of hits.
2025-10-21Bottomcontentscontainer: don't pass a parent for a sub-layoutMéven Car
Layouts are parented to their containing layout by default, and layouts can't share a same parent. This prevent a runtime warning regarding QLayout.
2025-09-03Fix several user-facing and non-user-facing typosKunda Ki
Found via `codespell -S "*.desktop,*.po,*.svg,*.xml,./po" -L aparent,childs,goup,lokal`
2024-04-17Fix crash while entering selection mode with Qt6.7Felix Ernst
`deleteLater()` on a non-existing object seems to cause a crash with Qt6.7. This makes some sense but wasn't the case previously. I didn't test this yet but it is a harmless change so if anyone can confirm we can IMO merge directly. This was brought up in https://invent.kde.org/system/dolphin/-/merge_requests/764#note_920935, reported in the bug linked below, and the sentry crash reporting page also has a few dozen reports (https://crash-reports.kde.org/organizations/kde/issues/13589/?project=4&query=is%3Aunresolved&referrer=issue-stream&stream_index=1). Dolphin 24.02 is also affected but we are already past the last bug fix release for it. BUG: 485599
2023-08-29Fix a bunch of clazy warningsMéven Car
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-04Update my eMail to the KDE-provided oneFelix Ernst
GIT_SILENT NO_CHANGELOG
2023-02-05Add clang-format and format code as in FrameworksSerg Podtynnyi
2022-12-20Remove duplicate headers between cpp/h filesLaurent Montel
2022-10-15Fix dismiss button in selection mode paste barFelix Ernst
This one liner changes the signal that is emitted when the "Dismiss" button is pressed on the Paste bottom bar in selection mode. Before this commit, the `leaveSelectionModeRequested()` signal was used but it had no effect because technically the selection mode isn't active anymore when the paste bar is shown. Everything works as expected if instead `barVisibilityChangeRequested()` is emitted.
2022-08-14Add "Invert Selection" and "Select All" to bottom barFelix Ernst
In selection mode, a bottom bar with contextual actions appears when at least one item is selected. This commit makes it so this bottom bar also contains the "Invert Selection" and "Select All" actions so users have more complete control over changing what is and isn't selected while in selection mode.
2022-08-14Address Nate's UX feedback: Episode 2Felix Ernst
- Make Esc leave selection mode and have it only clear selection when already outside selection mode. - Let translators know that the "More" overflow button should only have a short text on it. - Fix a crash that happened when any code tried to exit selection mode even though selection mode had never been enabled to begin with.
2022-08-14Address Nate's UX feedbackFelix Ernst
-More labels -More icons -"Abort" -> "Cancel"
2022-08-14Improve naming consistency and leave mode on EscapeFelix Ernst
2022-08-14Improve code qualityFelix Ernst
2022-08-14Better separation of classesFelix Ernst
Make obvious when actions trigger selection mode.