]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
3 years agoProperly use X11 startup ids
Nicolas Fella [Wed, 14 Dec 2022 23:56:11 +0000 (00:56 +0100)]
Properly use X11 startup ids

When one instance of Dolphin activates another it passes a startupId (X11) / activation token (wayland) along.

On X11 this is passed using the DESKTOP_STARTUP_ID environment variable. The code tries to read that through KStartupInfo::startupId().

That doesn't work though, since Qt at startup reads the environment variable afterwards. However, it is nice enough to allow us to access
it through QX11Info::nextStartupId(). Use that to read the token in the first instance and pass it to the second instance like we do on Wayland

The user-facing impact of this is minimal since KStartupInfo::setNewStartupId internally falls back to KWindowSystem::forceActiveWindow when no
startupId is passed.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 30 Dec 2022 10:06:37 +0000 (10:06 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 30 Dec 2022 02:48:16 +0000 (02:48 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Fri, 30 Dec 2022 02:12:34 +0000 (02:12 +0000)]
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"

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 28 Dec 2022 02:26:54 +0000 (02:26 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 28 Dec 2022 02:03:50 +0000 (02:03 +0000)]
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"

3 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 28 Dec 2022 00:52:36 +0000 (00:52 +0000)]
GIT_SILENT made messages (after extraction)

3 years agoNot use forward and includes
Laurent Montel [Mon, 26 Dec 2022 12:22:44 +0000 (13:22 +0100)]
Not use forward and includes

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 25 Dec 2022 03:17:06 +0000 (03:17 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 24 Dec 2022 02:19:38 +0000 (02:19 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 23 Dec 2022 02:15:30 +0000 (02:15 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 21 Dec 2022 02:16:43 +0000 (02:16 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoRemove duplicate headers between cpp/h files
Laurent Montel [Tue, 20 Dec 2022 20:54:57 +0000 (21:54 +0100)]
Remove duplicate headers between cpp/h files

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 17 Dec 2022 12:38:52 +0000 (12:38 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 17 Dec 2022 02:23:12 +0000 (02:23 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 16 Dec 2022 02:30:54 +0000 (02:30 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 15 Dec 2022 02:25:22 +0000 (02:25 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 14 Dec 2022 03:14:48 +0000 (03:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 13 Dec 2022 02:41:34 +0000 (02:41 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoAdd zsh completions
ivan tkachenko [Mon, 14 Nov 2022 20:44:49 +0000 (23:44 +0300)]
Add zsh completions

Completes all non-generic-Qt options listed in --help output.

Note: it uses the new variable KDE_INSTALL_ZSHAUTOCOMPLETEDIR, which was
added in ECM 5.101.

Read more: https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/310

3 years agoEnsure there's a dot at the end of each --help options description
ivan tkachenko [Wed, 16 Nov 2022 21:50:16 +0000 (00:50 +0300)]
Ensure there's a dot at the end of each --help options description

It will help make --help output more uniform, which in turn will be used
in Tab-completions for zsh.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 12 Dec 2022 02:37:27 +0000 (02:37 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 10 Dec 2022 02:09:24 +0000 (02:09 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 5 Dec 2022 02:13:20 +0000 (02:13 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 4 Dec 2022 02:12:38 +0000 (02:12 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 3 Dec 2022 02:18:54 +0000 (02:18 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 2 Dec 2022 03:25:30 +0000 (03:25 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 1 Dec 2022 02:11:57 +0000 (02:11 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoDolphinView: Add placeholder label for AFC kio
Kai Uwe Broulik [Tue, 29 Nov 2022 19:31:26 +0000 (20:31 +0100)]
DolphinView: Add placeholder label for AFC kio

Similar to how it's special-cased for MTP

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 30 Nov 2022 02:12:58 +0000 (02:12 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Update Appstream for new release
Heiko Becker [Tue, 29 Nov 2022 23:52:39 +0000 (00:52 +0100)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 37db7aeaa325fbe418959cc7bc57cd6906d79ea1)

3 years agoExit the deleted directory when it is removed
Méven Car [Tue, 29 Nov 2022 18:16:59 +0000 (18:16 +0000)]
Exit the deleted directory when it is removed

If current directory is a local file, try to find nearest dir ancestor and
open it. Display warning to the user.

3 years agoPlaces Panel: Delegate open file error to KIO
Kai Uwe Broulik [Tue, 29 Nov 2022 10:22:19 +0000 (10:22 +0000)]
Places Panel: Delegate open file error to KIO

This functionality is now provided by `KFilePlacesModel` as long as
you tell it to do the teardown rather than calling into the device yourself.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 29 Nov 2022 02:15:51 +0000 (02:15 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoPort away from deprecated KDirLister API
Nicolas Fella [Mon, 28 Nov 2022 00:50:25 +0000 (01:50 +0100)]
Port away from deprecated KDirLister API

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 28 Nov 2022 02:17:42 +0000 (02:17 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 27 Nov 2022 02:08:48 +0000 (02:08 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 26 Nov 2022 02:09:41 +0000 (02:09 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoFixed build-time deprecation warning about KStandardGuiItem::yes()
Shivodit Gill [Fri, 25 Nov 2022 10:58:07 +0000 (10:58 +0000)]
Fixed build-time deprecation warning about KStandardGuiItem::yes()

While building dolphin, a warning comes up about KStandardGuiItem::yes()
being deprecated, and that another action verb should be using instead.
This commit fixes the warning by replacing KStandardGuiItem::yes() with
a KGuiItem constructor in the file src/views/dolphinview.cpp.

The icon for the "Rename and Hide" button has also been changed from a
check mark (dialog-ok) to an eye with a cross (view-hidden) to make the
button look more unique and grab the attention of the user.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 24 Nov 2022 02:10:08 +0000 (02:10 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoUse \r to terminate command in integrated terminal
Haozhe Jiang [Sun, 28 Aug 2022 09:09:08 +0000 (17:09 +0800)]
Use \r to terminate command in integrated terminal

\r should be used instead of \n

BUG: 458411

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 22 Nov 2022 02:25:39 +0000 (02:25 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 20 Nov 2022 03:03:40 +0000 (03:03 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 19 Nov 2022 02:14:08 +0000 (02:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sat, 19 Nov 2022 01:51:46 +0000 (01:51 +0000)]
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"

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 16 Nov 2022 02:34:12 +0000 (02:34 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 15 Nov 2022 02:24:56 +0000 (02:24 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 12 Nov 2022 02:14:32 +0000 (02:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 11 Nov 2022 02:15:56 +0000 (02:15 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 10 Nov 2022 02:13:56 +0000 (02:13 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 8 Nov 2022 02:08:51 +0000 (02:08 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 7 Nov 2022 03:04:44 +0000 (03:04 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 6 Nov 2022 02:11:38 +0000 (02:11 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sun, 6 Nov 2022 01:51:33 +0000 (01:51 +0000)]
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"

3 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 6 Nov 2022 00:49:39 +0000 (00:49 +0000)]
GIT_SILENT made messages (after extraction)

3 years agoGIT_SILENT Upgrade release service version to 23.03.70.
Albert Astals Cid [Sat, 5 Nov 2022 20:25:49 +0000 (21:25 +0100)]
GIT_SILENT Upgrade release service version to 23.03.70.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 4 Nov 2022 02:10:35 +0000 (02:10 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 3 Nov 2022 02:14:49 +0000 (02:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 1 Nov 2022 02:11:07 +0000 (02:11 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 31 Oct 2022 03:14:01 +0000 (03:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Update Appstream for new release
Heiko Becker [Sun, 30 Oct 2022 20:47:27 +0000 (21:47 +0100)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 98ec3e98a0e515360974ca347f99c3c191489429)

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 30 Oct 2022 02:13:22 +0000 (02:13 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 29 Oct 2022 02:14:42 +0000 (02:14 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 28 Oct 2022 02:24:45 +0000 (02:24 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoFix view mode-specific settings not always applying
Felix Ernst [Sun, 23 Oct 2022 17:37:50 +0000 (19:37 +0200)]
Fix view mode-specific settings not always applying

When the current view mode is different from the view mode for
which settings were changed in Dolphin's settings dialog, those
changes were sometimes not present when then changing the view
mode of a view to the view mode for which settings were changed.

This commit fixes this by always loading the settings for all view
modes in the DolphinItemListView even if the view is currently
using only one of those view modes.

3 years agoChange the full row highlight checkbox to radiobuttons
Felix Ernst [Wed, 19 Oct 2022 17:10:02 +0000 (19:10 +0200)]
Change the full row highlight checkbox to radiobuttons

This commit changes how the setting to switch between full row
highlight and the old way of only having the icons and names be
activatable in details mode is presented on the settings page.

Before this commit a singular checkbox is used that talks about
the highlight effect.

But the highlight effect isn't actually what users should be
interested in. They mostly care how much of the area can be used to
activate an item. To make this clear this commit uses radio buttons
instead that give a distinctive choice between activation areas.

3 years agoMake details column text readable
Felix Ernst [Wed, 19 Oct 2022 17:04:39 +0000 (19:04 +0200)]
Make details column text readable

When not using the full row highlight, the text of non-name columns
in details view mode was wrongly colored in a way that pretended
that the full row selection highlight was active.

When it isn't active we use the normal color that we generally use
when the additional information is not within the selection
highlight.

3 years agoMake details view mode's full row activation optional
Felix Ernst [Wed, 19 Oct 2022 16:03:12 +0000 (18:03 +0200)]
Make details view mode's full row activation optional

In d3839617193e92463806580699caa595c892b8a6 the details view mode
was changed in a way that made the full row of an item the click
target instead of only having the item's icon and text be the
representative clickable area of an item.

This commit makes this new behaviour optional through a setting
which can be changed in Dolphin's settings dialog.

The explanation for introducing yet another setting in this case is
as follows:

While the introduced change is an improvement for many typical
workflows, there are some workflows for which this new behaviour
is problematic. Quite prominently a usage of Dolphin that tries
to maximise information density is made worse by the change because
now side padding is necessary to click the view's background. While
the side padding is and was optional, disabling it made switching
the active view in split view mode more difficult among other
things. For a more complete discussion about the issues, please
check out the bug report(s) and the discussion in Dolphin's gitlab
issue with number 34.

Co-authored-by: Ivan Čukić <ivan.cukic@kde.org>
BUG: 453700
FIXED-IN: 22.12

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 27 Oct 2022 02:15:26 +0000 (02:15 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 26 Oct 2022 02:17:33 +0000 (02:17 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Tue, 25 Oct 2022 02:19:13 +0000 (02:19 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 23 Oct 2022 02:09:26 +0000 (02:09 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 21 Oct 2022 02:19:55 +0000 (02:19 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 20 Oct 2022 03:30:34 +0000 (03:30 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 20 Oct 2022 02:11:03 +0000 (02:11 +0000)]
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"

3 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 20 Oct 2022 00:54:36 +0000 (00:54 +0000)]
GIT_SILENT made messages (after extraction)

3 years agoFix build with older KF versions
Ahmad Samir [Wed, 19 Oct 2022 15:45:10 +0000 (17:45 +0200)]
Fix build with older KF versions

GIT_SILENT

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 19 Oct 2022 02:13:26 +0000 (02:13 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Mon, 17 Oct 2022 02:30:26 +0000 (02:30 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoAdd Qt6 windows CI support
Laurent Montel [Wed, 5 Oct 2022 17:35:10 +0000 (19:35 +0200)]
Add Qt6 windows CI support

3 years agoFix compile against qt6.4
Laurent Montel [Sun, 16 Oct 2022 15:01:40 +0000 (17:01 +0200)]
Fix compile against qt6.4

"error C2397: conversion from 'qsizetype' to 'int' requires a narrowing
conversion"

3 years agoPort away from deprecated KIO API
Ahmad Samir [Wed, 7 Sep 2022 20:01:09 +0000 (22:01 +0200)]
Port away from deprecated KIO API

3 years agoDolphinTrash: port away from deprecated KIO API
Ahmad Samir [Wed, 7 Sep 2022 19:55:45 +0000 (21:55 +0200)]
DolphinTrash: port away from deprecated KIO API

Also change empty() method to return void, nothing was using the KJob * it was returning.

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sun, 16 Oct 2022 02:25:35 +0000 (02:25 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoFix dismiss button in selection mode paste bar
Felix Ernst [Thu, 13 Oct 2022 20:13:00 +0000 (22:13 +0200)]
Fix dismiss button in selection mode paste bar

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.

3 years agoPort away from deprecated KMessageBox Yes/No
Friedrich W. H. Kossebau [Fri, 30 Sep 2022 17:56:52 +0000 (19:56 +0200)]
Port away from deprecated KMessageBox Yes/No

GIT_SILENT

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Sat, 15 Oct 2022 02:22:25 +0000 (02:22 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoFix Wayland window activation when attaching to an existing instance
Nicolas Fella [Tue, 11 Oct 2022 19:21:09 +0000 (21:21 +0200)]
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

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Fri, 14 Oct 2022 02:12:06 +0000 (02:12 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Thu, 13 Oct 2022 02:13:17 +0000 (02:13 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agofix opening new windows unnecessary
Andrey Butirsky [Wed, 12 Oct 2022 20:04:07 +0000 (20:04 +0000)]
fix opening new windows unnecessary

fixes a regression introduced by
https://invent.kde.org/utilities/ark/-/merge_requests/44

BUG: 440663

3 years agoRemove unused includes
Laurent Montel [Wed, 12 Oct 2022 11:48:32 +0000 (13:48 +0200)]
Remove unused includes

3 years agoGIT_SILENT Sync po/docbooks with svn
l10n daemon script [Wed, 12 Oct 2022 02:06:29 +0000 (02:06 +0000)]
GIT_SILENT Sync po/docbooks with svn

3 years agoRename variable
Felix Ernst [Tue, 11 Oct 2022 14:25:39 +0000 (16:25 +0200)]
Rename variable

Based on code review feedback by Andrey Butirsky.

3 years agoAdd helper methods to tab widget for view containers
Felix Ernst [Fri, 26 Aug 2022 10:29:35 +0000 (12:29 +0200)]
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.

3 years agoFix item highlighting through DBus
Felix Ernst [Tue, 9 Aug 2022 14:02:55 +0000 (16:02 +0200)]
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

3 years agodon't use const'ref here (found by clazy)
Laurent Montel [Tue, 11 Oct 2022 06:59:26 +0000 (08:59 +0200)]
don't use const'ref here (found by clazy)

3 years agoRemove unused include
Laurent Montel [Tue, 11 Oct 2022 06:59:19 +0000 (08:59 +0200)]
Remove unused include

3 years agoUse std::chrono_literals
Laurent Montel [Tue, 11 Oct 2022 06:59:06 +0000 (08:59 +0200)]
Use std::chrono_literals

3 years agoUse QStringLiteral
Laurent Montel [Tue, 11 Oct 2022 06:58:50 +0000 (08:58 +0200)]
Use QStringLiteral