Commit graph

7326 commits

Author SHA1 Message Date
Friedrich W. H. Kossebau 5be69f0dab Port away from deprecated KMessageBox Yes/No
GIT_SILENT
2022-10-15 07:18:34 +00:00
l10n daemon script a509bd7629 GIT_SILENT Sync po/docbooks with svn 2022-10-15 02:22:25 +00:00
Nicolas Fella 6c19e73367 Fix Wayland window activation when attaching to an existing instance
The application launching Dolphin passes a token via the XDG_ACTIVATION_TOKEN environment variable

We need to pass that to the running instance so that it can use it to raise itself
2022-10-14 14:46:29 +00:00
l10n daemon script 354aba3c85 GIT_SILENT Sync po/docbooks with svn 2022-10-14 02:12:06 +00:00
l10n daemon script b65fcbbcdd GIT_SILENT Sync po/docbooks with svn 2022-10-13 02:13:17 +00:00
Andrey Butirsky c628c9d64d fix opening new windows unnecessary
fixes a regression introduced by
https://invent.kde.org/utilities/ark/-/merge_requests/44

BUG: 440663
2022-10-12 20:04:07 +00:00
Laurent Montel 9e2418f025 Remove unused includes 2022-10-12 13:48:32 +02:00
l10n daemon script e9b8a36932 GIT_SILENT Sync po/docbooks with svn 2022-10-12 02:06:29 +00:00
Felix Ernst 0c8183afed Rename variable
Based on code review feedback by Andrey Butirsky.
2022-10-11 16:25:39 +02:00
Felix Ernst 37a98417cd Add helper methods to tab widget for view containers
This commit introduces the private getter
DolphinTabWidget::viewContainerAt(ViewIndex)
and another private method
DolphinTabWidget::activateViewContainerAt(ViewIndex).

Both methods return nullptr if there is no valid
DolphinViewContainer at the specified ViewIndex.
2022-10-11 15:26:31 +02:00
Felix Ernst 4d81aabd1e Fix item highlighting through DBus
Before this commit, even items that are distant children of
currently open views were considered selectable. This lead to the
bug that items meant to be highlighted through DBus would not be
highlighted if any ancestor of the item was open in any view.

This was fixed by only considering items in view if they can be
seen by scrolling. Main difficulty here was to make this also work
for the details view mode which allows expanding.

To implement this cleanly, some refactoring seemed necessary
because the logic to determine if an item is already in view
was previously intertwined with the logic to identify already open
directories.

This commit also contains the following refactorings aiming to
make the code more readable:
- A magic value (-1) is replaced using std::optional.
- A boolean trap is removed.
- A QPair is replaced by a struct with named variables.
- More and improved documentation
2022-10-11 15:26:31 +02:00
Laurent Montel 8916a647d6 don't use const'ref here (found by clazy) 2022-10-11 08:59:26 +02:00
Laurent Montel 8e0d84d0af Remove unused include 2022-10-11 08:59:19 +02:00
Laurent Montel 6b0483bf8a Use std::chrono_literals 2022-10-11 08:59:06 +02:00
Laurent Montel a490a6625b Use QStringLiteral 2022-10-11 08:58:50 +02:00
Laurent Montel a50cc58e1b Use const'ref 2022-10-11 08:58:40 +02:00
Laurent Montel bb30d8f01a Remove unused includes 2022-10-11 08:51:12 +02:00
Laurent Montel a5c0f7588a Show all includes in qtc6 2022-10-11 08:51:03 +02:00
Laurent Montel 40cc5f665d port to KIO::createDefaultJobUiDelegate 2022-10-11 08:46:12 +02:00
Heiko Becker d3617c06d4 GIT_SILENT Update Appstream for new release
(cherry picked from commit 87d846346d)
2022-10-10 21:48:22 +02:00
l10n daemon script eb922b0d7b GIT_SILENT Sync po/docbooks with svn 2022-10-09 02:17:53 +00:00
l10n daemon script 932cd56ece GIT_SILENT Sync po/docbooks with svn 2022-10-08 10:59:47 +00:00
Marco Martin 71ea4a88d8 Replace context menu on long press with selection mode
on long touch (and not on mouse press) don't pop up the context menu
anymore but enter selection mode, similar behavior to mobile applications.
the full context menu is still available from the actions toolbar
appearing in selection mode
2022-10-08 07:02:00 +00:00
l10n daemon script 84c4701bef GIT_SILENT Sync po/docbooks with svn 2022-10-07 02:31:45 +00:00
Kai Uwe Broulik 380543334c DolphinTabBar: Open folder in new tab when dropped onto tab bar 2022-10-06 12:21:15 +00:00
Kai Uwe Broulik 8402b98995 DolphinTabWidget: Allow specifying new tab position in openNewTab 2022-10-06 12:21:15 +00:00
l10n daemon script 57f694453a GIT_SILENT Sync po/docbooks with svn 2022-10-06 02:18:44 +00:00
l10n daemon script 7cb630c604 GIT_SILENT Sync po/docbooks with svn 2022-10-03 03:16:23 +00:00
Kai Uwe Broulik f4a400bad7 Remove superfluous setData call
It's done by urlNavigatorHistoryAction already
2022-10-02 15:10:15 +02:00
John Brooks 3656da18b0 terminal: Clear line using escapes instead of SIGINT
Sending SIGINT can be destructive, for example if we interrupt the
loading of the shell init files (e.g. .bashrc) and clobber history
preservation settings. Follow the example of Kate and send a Ctrl-E
Ctrl-U to clear the prompt instead.

BUG: 279614
Signed-off-by: John Brooks <john@fastquake.com>
2022-10-02 07:14:23 +00:00
l10n daemon script 2f171f570e GIT_SILENT Sync po/docbooks with svn 2022-10-02 03:37:48 +00:00
l10n daemon script 13712a5065 SVN_SILENT made messages (.desktop file) - always resolve ours
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"
2022-09-28 02:00:06 +00:00
Laurent Montel aa54a68e93 Add missing include (needed for building qt6) 2022-09-26 09:03:55 +02:00
Laurent Montel e19aa49a08 Remove unused includes 2022-09-26 08:17:13 +02:00
l10n daemon script c9271bf5b8 GIT_SILENT made messages (after extraction) 2022-09-24 00:49:05 +00:00
Felix Ernst 75183e609f Increase code coverage of places panel width resistance test
Improve the test by also testing the various selection mode bars.
No combination of bars should lead to a resize of the paces panel.

This commit also helps with increasing code coverage by making all
possible selection mode bars appear.
2022-09-23 21:17:19 +02:00
l10n daemon script 6c65d06bcd SVN_SILENT made messages (.desktop file) - always resolve ours
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"
2022-09-21 01:48:38 +00:00
l10n daemon script fede2094e3 GIT_SILENT made messages (after extraction) 2022-09-21 00:49:27 +00:00
Felix Ernst f4bed9333e Trigger "Exit Selection Mode" button on clicked and not on pressed
This way it works just like every other button.

This commit also removes two empty files that sneaked in by
accident.
2022-09-15 14:18:44 +00:00
Felix Ernst 11ada1515d Improve selection action toggle code
@broulik noticed an issue in the code. This commit fixes it.

-------------------

Before this commit there was a `QObject::disconnect` call that did
nothing (because it had `nullptr` as the first parameter) and there was a `QObject::connect` call that created
the same connections multiple times because of this.

This had no effect on end users. However such code can lead to
issues in the future e.g. if we ever had a situation in which the selection mode could be toggled for an inactive view container.

This commit solves this by replacing the `QObject::disconnect` call
with one that works. The `QObject::connect` call is moved so
there won't be multiple connections of the same type.
2022-09-15 13:36:05 +00:00
Felix Ernst 3dd49a8539 [dolphinview] Disconnect modelChanged when destructing
Deleting DolphinView deletes KItemListContainer, which deletes
KItemListController, which emits modelChanged, which causes a
signal delivery to the already destroyed DolphinView

This is never good, and in Qt6 causes an assert
(https://codereview.qt-project.org/c/qt/qtbase/+/381860).

Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de>
2022-09-15 14:15:31 +02:00
Eric Edlund 8ff021ca69 Change "OpenExternallyCalledFolderInNewTab" to false by default 2022-09-09 16:14:38 +00:00
l10n daemon script f49cba188a GIT_SILENT made messages (after extraction) 2022-09-06 00:48:29 +00:00
Natalie Clarius 6e6993f098 doc: fix typo (Trash -> User Feedback) 2022-09-03 13:21:06 +02:00
Heiko Becker 56ff2bed7e GIT_SILENT Update Appstream for new release
(cherry picked from commit 4986d7c8df)
2022-09-02 23:59:56 +02:00
Laurent Montel aa74815834 Add FreeBSD Qt6 CI support 2022-08-29 08:13:42 +02:00
Felix Ernst 4ddc4159ed This commit removes the ability to enter selection mode by
click-and-holding with a pointing device like a mouse.

This functionality was originally implemented because it seemed
useful to save users the effort of entering selection mode
explicitly by using its corresponding action.

However, click-and-holding to trigger anything is not really an
expected behaviour. (This contrasts with touch devices where
press-and-holding is common to trigger something.)

Aside from the above reasoning, the click-and-hold behaviour was
also buggy so that selection mode was entered in a couple of
situations that weren't strictly about click-and-holding.

So this commit removes the functionality and the bugs.

BUG: 457973   
BUG: 458129   
CCBUG: 457975
2022-08-27 09:40:51 +00:00
Kai Uwe Broulik a44830c3a9 Don't show error message on ERR_USER_CANCELED
There's no point telling the user what they just did.

After f192c133eb
this error has a text associated with it, so it might
show up in the UI.
2022-08-24 17:00:01 +02:00
Laurent Montel 29cd7b8e1f GIT_SILENT: Terminal=false is default value. Not necessary to keep it in desktop file 2022-08-23 20:47:01 +02:00
Méven Car 4150960081 InformationPanel: better refresh state when current dir changes
Refactor and simplify things along the way.

BUG: 457813
2022-08-22 23:32:28 +02:00