]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
5 years agoAllow the openURLJob to run executables
Nate Graham [Tue, 24 Nov 2020 20:47:48 +0000 (13:47 -0700)]
Allow the openURLJob to run executables

Otherwise, excecutable files like AppImages won't be allowed to launch
even if they are correctly marked as executable.

BUG: 429603
FIXED-IN: 20.12

5 years agoPlaces panel: highlight place only when it is displayed
Méven Car [Tue, 17 Nov 2020 20:11:03 +0000 (21:11 +0100)]
Places panel: highlight place only when it is displayed

BUG: 156678
FIXED-IN: 20.12

5 years agoPlacesItemModelTest: consider also Pictures/Music/Videos folders
Elvis Angelaccio [Sun, 22 Nov 2020 23:25:07 +0000 (00:25 +0100)]
PlacesItemModelTest: consider also Pictures/Music/Videos folders

See a371e23b2b667bc85c311d04549f3d7348d00af5 in kio.

5 years agoPlacesItemModelTest: use helper method to increase indexes
Elvis Angelaccio [Sun, 22 Nov 2020 23:36:50 +0000 (00:36 +0100)]
PlacesItemModelTest: use helper method to increase indexes

Instead of duplicating the logic all over the place.

5 years agoSelect last visited folder when going up/back
Felix Ernst [Fri, 20 Nov 2020 15:17:08 +0000 (16:17 +0100)]
Select last visited folder when going up/back

This commit fixes a regression introduced by
ad5d3367c7fef4c3c11188a768f21a2ee2b3c025. A lot of connections were
changed there and at least one of them was wrong. The connections can
be separated into GUI connections and internal ones. This commit makes
it so the GUI stuff is connected to m_urlNavigatorConnected and
everything else to m_urlNavigator.

BUG: 429097

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 21 Nov 2020 07:23:19 +0000 (08:23 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoRe-allow icons that are not theme icon
Méven Car [Sun, 15 Nov 2020 21:12:52 +0000 (22:12 +0100)]
Re-allow icons that are not theme icon

Particularly concerned are .desktop files.

See also:
15baa93640bbb49162f26d439e006729ee9c3441

BUG: 429113

5 years agoAllow having the UrlNavigators below the tab bar
Felix Ernst [Thu, 19 Nov 2020 21:22:27 +0000 (21:22 +0000)]
Allow having the UrlNavigators below the tab bar

This commit restores the possibility to have the UrlNavigators below
the tab bar. This will happen automatically whenever the UrlNavigator
is removed from the toolbar.

It is also now again possible to have the toolbar on the side. This
option is disabled while the toolbar contains the UrlNavigators.

This commit makes no changes to the new default which is having the
UrlNavigators in the toolbar but makes sure that upgrading users won't
be affected.

5 years agoPlacesPanel: tooltip, use toLocalFile instead of path
Méven Car [Sat, 14 Nov 2020 07:59:35 +0000 (08:59 +0100)]
PlacesPanel: tooltip, use toLocalFile instead of path

To avoid Windows compatiblity issues.

5 years agoIncrement kpartgui version
Felix Ernst [Sun, 15 Nov 2020 14:21:44 +0000 (15:21 +0100)]
Increment kpartgui version

The defaults changed in 37327c9b0aae112c5890703cba1f0157043007e0 but
I forgot to also bump the kpartgui version so this commit rectifies
that.

5 years agoContext Menu: Only add paste action to folders
Méven Car [Sat, 14 Nov 2020 06:58:24 +0000 (07:58 +0100)]
Context Menu: Only add paste action to folders

Either the viewport, or the selected folder is used as destination.
The paste action is only added when enabled.

5 years agoFix navigator alignment for right-to-left localizations
Felix Ernst [Wed, 11 Nov 2020 14:40:14 +0000 (15:40 +0100)]
Fix navigator alignment for right-to-left localizations

5 years agoFix qrc icon
Alexander Lohnau [Thu, 12 Nov 2020 09:01:08 +0000 (10:01 +0100)]
Fix qrc icon

Apparently the icon was not null, because the mimetype was known.
But there was no icon associated with it and we got an
icon which is not null, but has a null pixmap.

5 years agoSet empty value for packagekit transaction flags
Alexander Lohnau [Thu, 12 Nov 2020 08:38:22 +0000 (09:38 +0100)]
Set empty value for packagekit transaction flags

Otherwise the value would be Trusted Only, which will
forbid installing local packages

5 years agoPlaces panel: show a tooltip after 500 ms
Méven Car [Sat, 7 Nov 2020 18:45:56 +0000 (19:45 +0100)]
Places panel: show a tooltip after 500 ms

BUG: 426455
FIXED-IN: 20.12

5 years agoAdress the third round of Angelaccio's review comments
Felix Ernst [Mon, 9 Nov 2020 13:25:15 +0000 (14:25 +0100)]
Adress the third round of Angelaccio's review comments

Additionally remove some redundant code concerning UrlNavigator visuals.

5 years agoAdress most of the second round of Angelaccio's review comments
Felix Ernst [Thu, 5 Nov 2020 22:30:07 +0000 (23:30 +0100)]
Adress most of the second round of Angelaccio's review comments

This commit applies most suggestions which were made on the MR.
Most notably the DolphinUrlNavigator class is split up which leads to
the creation of a DolphinUrlNavigatorsController class.

Additionally some minor coding style and const correctness changes are
included.

The error value of cached integers is changed from -1 to INT_MIN
because situations could come up in which -1 would be a valid value.

5 years agoApply Méven Car's suggestions
Felix Ernst [Thu, 5 Nov 2020 15:28:13 +0000 (16:28 +0100)]
Apply Méven Car's suggestions

5 years agoFix a crash and extract unrelated changes
Felix Ernst [Wed, 28 Oct 2020 16:52:29 +0000 (17:52 +0100)]
Fix a crash and extract unrelated changes

The secondary UrlNavigator is now created when and only when:
- split view mode is activated for the active tab
OR
- switching to a tab that has split view already enabled.
This fixes a crash that occurs when the setting to always start in
split view mode is enabled.

An animation for activating split view is also removed from this and
moved into a separate MR. Another unrelated name change left over from
a previous commit (viewContainers() -> activeViewContainers()) is
dropped.

5 years agoMake UrlNavigators in the toolbar the only option
Felix Ernst [Sun, 20 Sep 2020 16:53:59 +0000 (18:53 +0200)]
Make UrlNavigators in the toolbar the only option

The UrlNavigators will be automatically added to the toolbar. The Sort By
action is removed from the default toolbar to make space.

Remove all options to have UrlNavigators outside the toolbar and remove
those code paths.

Make it so the new NavigatorsWidgetAction contains two UrlNavigators when
in split view mode. Spacing was also added to align these UrlNavigators
with the ViewContainers when enough space is available.

Force the toolbar to be either at the top or bottom of the window.

Set a sane sizeHint for DolphinUrlNavigator. It would be better to do this
in KUrlNavigator in the future.

This commit also contains a changes which should be moved to a separate
merge requests before this gets merged:
- Add an expansion animation when split view is enabled by the user

5 years agoAdd the UrlNavigator to the toolbar automatically if needed
Felix Ernst [Thu, 27 Aug 2020 16:55:18 +0000 (18:55 +0200)]
Add the UrlNavigator to the toolbar automatically if needed

This commit adds the DolphinUrlNavigatorWidgetAction::addToToolbarAndSave()
method which changes the users toolbar configuration to contain an
Url Navigator. This way the user doesn't need to do anything manually.

Aside from that a bunch of minor fixes like renaming and reordering

5 years agoAdress the first round of Angelaccio's review comments
Felix Ernst [Wed, 12 Aug 2020 18:45:17 +0000 (20:45 +0200)]
Adress the first round of Angelaccio's review comments

- Split the viewContainers(bool includeInActive) into two methods
    without parameters
- Prevent users from accidently hiding all Url Navigators by
    preventing the dangerous action and then displaying a helpful
    message instead
Unrelated to review comments: Remove a useless line of code

5 years agotrailing whitespaces
Felix Ernst [Sun, 14 Jun 2020 21:08:48 +0000 (23:08 +0200)]
trailing whitespaces

5 years agoAdd an option to use an UrlNavigator in the toolbar instead
Felix Ernst [Sun, 14 Jun 2020 14:20:02 +0000 (16:20 +0200)]
Add an option to use an UrlNavigator in the toolbar instead

This commit adds a locationInToolbar KToggleAction to switch between
using a location bar to navigate or using a new custom QWidgetAction
in the toolbar.

A big portion of this MR is refactoring because until now the
UrlNavigator was tightly intertwined with the DolphinViewContainer.
With this MR an UrlNavigator for controlling a View can be freely
connected or disconnected with a single method call.

A DolphinUrlNavigator class is created in the process which contains all
Dolphin-specific UrlNavigator code which did previously reside in the
DolphinViewContainer class. Other application parts that belong to
UrlNavigator-management are also moved here.

5 years agoPlacesItemListWidget: Use Solid to check if device is a network share
Méven Car [Mon, 9 Nov 2020 12:30:43 +0000 (12:30 +0000)]
PlacesItemListWidget: Use Solid to check if device is a network share

5 years agoAdd missing reference
Elvis Angelaccio [Sun, 8 Nov 2020 22:23:07 +0000 (23:23 +0100)]
Add missing reference

5 years agoIterate over a const copy list of containers
Ismael Asensio [Fri, 6 Nov 2020 20:22:14 +0000 (21:22 +0100)]
Iterate over a const copy list of containers

This effectively reverts the mutable iterations approach on
2448f88c5f42d7a2040fcf3bcd3c5f2a2f62cd03, and fix crashes
and ghost items when using the filter bar

BUG: 428374

5 years agoGIT_SILENT Upgrade release service version to 20.11.80.
Albert Astals Cid [Sun, 8 Nov 2020 16:46:54 +0000 (17:46 +0100)]
GIT_SILENT Upgrade release service version to 20.11.80.

5 years agoDo not expose KCMs in application launchers
Alexander Lohnau [Fri, 6 Nov 2020 21:57:47 +0000 (22:57 +0100)]
Do not expose KCMs in application launchers

We still need to build them, because they
are also loaded on konqueror.

5 years agoKDirectoryContentsCounter: fix support of symlinks dir
Méven Car [Thu, 5 Nov 2020 06:58:24 +0000 (07:58 +0100)]
KDirectoryContentsCounter: fix support of symlinks dir

BUG: 428712
FIXED-IN: 20.12

5 years agoAdd support for KUserFeedback
Elvis Angelaccio [Tue, 18 Aug 2020 21:47:53 +0000 (23:47 +0200)]
Add support for KUserFeedback

This commit introduces KUserFeedback in dolphin with some basic data
sources and with a settings page to configure the telemetry values.

There are also a couple custom data sources as proof of concept: a bunch
of settings and the count of available network shares as listed by Solid.

The settings page is shown only if the user feedback framework is
enabled, but currently in Plasma we don't have a global kill switch to
disable it.

At the moment we never show an encouragement message. We need to connect
to the `Provider::showEncouragementMessage()` signal, but first we
should agree to a common way to show a non-annoying message to the users.

5 years agoDetails view: display empty text instead of unknown for sizeless dirs
Méven Car [Thu, 5 Nov 2020 07:50:55 +0000 (08:50 +0100)]
Details view: display empty text instead of unknown for sizeless dirs

BUG: 420037
BUG: 420040
FIXED-IN: 20.12

5 years agoMove m_textInfo to fix ctor warning, and document why it's protected.
Chris Holland [Wed, 4 Nov 2020 21:57:47 +0000 (16:57 -0500)]
Move m_textInfo to fix ctor warning, and document why it's protected.

5 years agoUse QDeadlineTimer instead of QDateTime.
Chris Holland [Sat, 17 Oct 2020 18:37:54 +0000 (14:37 -0400)]
Use QDeadlineTimer instead of QDateTime.
Use early returns instead of deeply nested if/else.

5 years agoCleanup imports
Chris Holland [Sat, 17 Oct 2020 18:31:06 +0000 (14:31 -0400)]
Cleanup imports

5 years agoRemove wip debugging
Chris Holland [Fri, 11 Sep 2020 00:06:52 +0000 (20:06 -0400)]
Remove wip debugging

5 years agoFix freeSpaceInfo cache not being reset.
Chris Holland [Fri, 11 Sep 2020 00:05:37 +0000 (20:05 -0400)]
Fix freeSpaceInfo cache not being reset.

5 years agoUse KDE GitLab url instead of the GitHub mirror
Chris Holland [Sun, 5 Jul 2020 17:46:05 +0000 (13:46 -0400)]
Use KDE GitLab url instead of the GitHub mirror

5 years agoCleanup unused colors. Use const. Use KColorScheme danger.
Chris Holland [Sun, 5 Jul 2020 17:42:17 +0000 (13:42 -0400)]
Cleanup unused colors. Use const. Use KColorScheme danger.

The draw code is more like the last state of D21312 now.

5 years agoRefactor capacity by to use async KIO FreeSpaceJob.
Chris Holland [Fri, 12 Jun 2020 20:06:59 +0000 (16:06 -0400)]
Refactor capacity by to use async KIO FreeSpaceJob.

Based on this kio filepicker patch:
https://github.com/KDE/kio/commit/933887dc334f3498505af7a86d25db7faae91019

5 years agoOnly show capacity bar for devices (has a udi).
Chris Holland [Fri, 1 Nov 2019 22:45:52 +0000 (18:45 -0400)]
Only show capacity bar for devices (has a udi).

5 years agoOnly check if place url is mount point once during polish event.
Chris Holland [Thu, 1 Aug 2019 01:46:53 +0000 (21:46 -0400)]
Only check if place url is mount point once during polish event.

The capacity bars will no longer update when capacity changes. It only
checks the size on init.

Updating during polish event is only a temporarily solution just to
draft code flow for seperating logic from painting. Eventually this
logic update should be in a worker thread detached from blocking the
rendering thread that blocks launching the dolphin window.

5 years agoDraw 2 Rectangles below mount points to represent a disk capacity bar
Chris Holland [Mon, 20 May 2019 17:47:48 +0000 (13:47 -0400)]
Draw 2 Rectangles below mount points to represent a disk capacity bar

Draws overtop text that's goes below the baseline like a 'j'. It's
fairly difficult to add extra space below the text as the places view
is a "details" view, so the text is vertically centered in the
widget's "row" as you'd desire it to in the main file view.

We can make the widget 8px taller, adding 4px above and below so
there's adequate room for the capacitybar, but that wastes 4px for
each mount point.

Ideally we'd use the "compact" view, which displays the text/size in a
column beside the icon. However the compact view was not designed to
take up the entire width of the viewport. It's also designed to
overflow with a horizontal scrollbar.

5 years agoImprove padding in the Places View
Ezike Ebuka [Wed, 4 Nov 2020 21:54:10 +0000 (21:54 +0000)]
Improve padding in the Places View

5 years agoRevert "D-Bus activation systemd service"
Elvis Angelaccio [Wed, 4 Nov 2020 00:12:48 +0000 (01:12 +0100)]
Revert "D-Bus activation systemd service"

This reverts commit eb441b11885fc44dcba1bef693b95819657ed753.

We'll push it again after we branch 20.12. We don't want to push a too
recent version of KF5 on distros.

!27

5 years agoCompute text width taking into account the zoom level
Méven Car [Tue, 3 Nov 2020 10:03:45 +0000 (10:03 +0000)]
Compute text width taking into account the zoom level

This makes the icon view less crowded.

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 3 Nov 2020 05:20:03 +0000 (06:20 +0100)]
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"

5 years agoFolderPanel: prevents scanning directory tree recursively
Méven Car [Sat, 31 Oct 2020 11:40:57 +0000 (12:40 +0100)]
FolderPanel: prevents scanning directory tree recursively

KFileItemListView contents are periodically scanned by KFileItemModelRolesUpdater.
It uses then KDirectoryContentsCounter to scan directories to determine their size possibly recursively.

Introduce a scanDirectories setting to disable directory scanning by KFileItemModelRolesUpdater.

BUG: 426617
FIXED-IN: 20.08.3

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Tue, 3 Nov 2020 01:35:33 +0000 (02:35 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoFix PlacesItemModelTest
Elvis Angelaccio [Mon, 2 Nov 2020 00:09:55 +0000 (01:09 +0100)]
Fix PlacesItemModelTest

Since 3dfa0c1c2f87bf1e6bc9 in kio timeline:// is no longer in the places
model.

5 years agoservicemenuinstaller: use Q_GLOBAL_STATIC
Elvis Angelaccio [Sun, 1 Nov 2020 23:03:20 +0000 (00:03 +0100)]
servicemenuinstaller: use Q_GLOBAL_STATIC

Global statics should be avoided when possible.
This fixes a clazy warning.

5 years agoPort away from deprecated QWheelEvent::delta()
Elvis Angelaccio [Sun, 1 Nov 2020 22:42:46 +0000 (23:42 +0100)]
Port away from deprecated QWheelEvent::delta()

QWheelEvent::angleDelta() returns a QPoint instead of int, so we need to
use its y() value to get the number of steps.

5 years agoUse QString::rightRef() as suggested by clazy
Elvis Angelaccio [Sun, 1 Nov 2020 22:31:58 +0000 (23:31 +0100)]
Use QString::rightRef() as suggested by clazy

5 years agomake sure we use valid icons
Martin T. H. Sandsmark [Fri, 25 Sep 2020 16:40:20 +0000 (18:40 +0200)]
make sure we use valid icons

5 years agoFix warnings about scaling pixmaps
Martin T. H. Sandsmark [Fri, 25 Sep 2020 14:33:25 +0000 (16:33 +0200)]
Fix warnings about scaling pixmaps

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Sat, 31 Oct 2020 16:58:54 +0000 (17:58 +0100)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 92d41a743399f6f38ff55b9cb59657f5c5a5a510)

5 years agoPort from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation
David Faure [Sat, 31 Oct 2020 13:31:22 +0000 (14:31 +0100)]
Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation

They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path.

NO_CHANGELOG

5 years agoDisable session management for daemon
Nate Graham [Thu, 29 Oct 2020 21:00:39 +0000 (15:00 -0600)]
Disable session management for daemon

We don't need to autostart the daemon if it was running at logout.

BUG: 417219
FIXED-IN: 20.12

5 years agoFix wrong parameter in function call
Lothar Paltins [Tue, 27 Oct 2020 14:54:03 +0000 (15:54 +0100)]
Fix wrong parameter in function call

In KDirectoryContentsCounterWorker::CountResult, the first parameter in
the call of walkDir was wrong. It should be path without conversion,
because the conversion is done in the called function.

BUG: 428282

5 years agoUse mutable iterators where required
Alexander Lohnau [Sat, 24 Oct 2020 14:46:34 +0000 (16:46 +0200)]
Use mutable iterators where required

5 years agoCompile with QT_NO_KEYWORDS
Alexander Lohnau [Fri, 23 Oct 2020 17:51:33 +0000 (19:51 +0200)]
Compile with QT_NO_KEYWORDS

5 years agoCompile without foreach
Alexander Lohnau [Fri, 23 Oct 2020 17:48:22 +0000 (19:48 +0200)]
Compile without foreach

5 years agoDolphinTabWidget: prefer QUrl::toDisplayString() for tooltips
Elvis Angelaccio [Fri, 23 Oct 2020 17:15:07 +0000 (19:15 +0200)]
DolphinTabWidget: prefer QUrl::toDisplayString() for tooltips

This is better for remote urls.

!35

5 years agoKItemListSizeHintResolver: remove no longer used member
Elvis Angelaccio [Tue, 20 Oct 2020 22:37:27 +0000 (00:37 +0200)]
KItemListSizeHintResolver: remove no longer used member

5 years agoDon't session-restore invalid paths
Nate Graham [Tue, 13 Oct 2020 19:37:11 +0000 (13:37 -0600)]
Don't session-restore invalid paths

When session restore is populating the main window, it's unconditional;
you'll get whatever was there before. This can be a problem if any of
those things are now missing. For example, maybe you were browsing files
on a removable disk, then quit Dolphin, and finally removed the disk. The
next time you launch Dolphin again, it will try to show you the
view from the now-missing removable disk.

To prevent this, we now look at all the URLs in all of the view
containers that were created after session-restore has finished doing
its thing; if any of them are invalid local URLs, we change the URL to
the home folder instead to avoid showing the user a view with an invalid
location in it.

BUG: 427619
FIXED-IN: 20.12

5 years agoShow home folder if needed after unmounting mounted disk
Nate Graham [Tue, 13 Oct 2020 17:51:59 +0000 (11:51 -0600)]
Show home folder if needed after unmounting mounted disk

Right now, when you unmount a device that any active view containers are
displaying, nothing in the view changes. As a result, it's possible to
try to navigate to files or folders in that view, which cannot be done
because the disk that the files or folders are located on has been
unmounted!

With this commit, we detect that case and switch the view containers
to show the home folder after the disk whose contents they are displaying
gets unmounted.

BUG: 158934
FIXED-IN: 20.12

5 years agoFix DolphinMainWindow::viewContainers() to take into account split views
Nate Graham [Sat, 17 Oct 2020 00:35:54 +0000 (18:35 -0600)]
Fix DolphinMainWindow::viewContainers() to take into account split views

The function was previously assuming that each tab view has exactly one
view container, which is not necessarily accurate; some could have a
split view open.

5 years agoIf include is define in .h remove it if it's defined in .cpp too (scripted)
Laurent Montel [Fri, 23 Oct 2020 05:43:43 +0000 (07:43 +0200)]
If include is define in .h remove it if it's defined in .cpp too (scripted)

5 years agoD-Bus activation systemd service
Henri Chain [Wed, 21 Oct 2020 10:20:56 +0000 (10:20 +0000)]
D-Bus activation systemd service

Correctly scopes dolphin in systemd service `app-org.kde.dolphin.service` when dbus-activated (while still working if systemd is not present), as per https://systemd.io/DESKTOP_ENVIRONMENTS/

uses new ECM modules:
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/5 to simplify the systemd service templating + install
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/17 to generate the dbus service file automatically

needs https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/25

5 years agoRemove not implmemented method
Laurent Montel [Sat, 17 Oct 2020 16:04:55 +0000 (18:04 +0200)]
Remove not implmemented method

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 17 Oct 2020 00:34:34 +0000 (02:34 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoPort away from QTimeLine::setCurveShape()
Elvis Angelaccio [Wed, 14 Oct 2020 23:27:28 +0000 (01:27 +0200)]
Port away from QTimeLine::setCurveShape()

As recommended, we now set `easingCurve` directly.

5 years agoStop using QVariant < operator
Elvis Angelaccio [Wed, 14 Oct 2020 22:07:12 +0000 (00:07 +0200)]
Stop using QVariant < operator

It will be removed in Qt 6 without porting strategy:
https://github.com/qt/qtbase/commit/f43cb31ba00a431c6d0a0b17750483a72ae03bb0

We know that that variants will be either ints (for `count`) or longs (for `size`),
so just convert them to longs (to avoid overflows) and compare those.

5 years agoDrop obsolete version check
Elvis Angelaccio [Wed, 14 Oct 2020 21:53:00 +0000 (23:53 +0200)]
Drop obsolete version check

We require Qt 5.14 now.

5 years agoPort to non-deprecated QLabel::pixmap()
Elvis Angelaccio [Wed, 14 Oct 2020 21:46:40 +0000 (23:46 +0200)]
Port to non-deprecated QLabel::pixmap()

Quoting from:
https://github.com/qt/qtbase/commit/714409b23ce5ec33e56adce5ba1966aad67c3b34

```
The QLabel changes to the pixmap/picture getters provide the following
migration path:

QPixmap *ppix = l->pixmap(); // up to 5.15, warns in 5.15
QPixmap pval = l->pixmap(Qt::ReturnByValue); // new in 5.15, works in 6
QPixmap pixmap = l->pixmap(); // from Qt 6 on
```

Since we can't require 5.15 yet in dolphin, the port is done only when
building with Qt >= 5.15

5 years agoPort to non-deprecated QString::split() variant
Elvis Angelaccio [Wed, 14 Oct 2020 21:26:05 +0000 (23:26 +0200)]
Port to non-deprecated QString::split() variant

This requires Qt 5.14, which we now depend on.

5 years agoPort away from QList::toSet()
Elvis Angelaccio [Thu, 28 May 2020 17:42:23 +0000 (19:42 +0200)]
Port away from QList::toSet()

The QSet range constructor requires Qt 5.14.

In `DolphinView::slotHeaderContextMenuRequested()` the conversion from
QList to QSet was pointless, so we just use a QList now.

5 years agoAdd tooltip to tabbar
tolu schr [Wed, 8 Jul 2020 08:59:11 +0000 (10:59 +0200)]
Add tooltip to tabbar

5 years agoShow "Open With" menu items even for empty dirs
Nate Graham [Tue, 13 Oct 2020 00:16:53 +0000 (18:16 -0600)]
Show "Open With" menu items even for empty dirs

We found some legitimate use cases for this after all! :)

This reverts 14f0cd52f61de7539e2d9c751966594708ed0281

BUG: 427573
FIXED-IN: 5.12

5 years agoWhen restoring former window state, append any URLs passed as args
Nate Graham [Tue, 6 Oct 2020 18:16:25 +0000 (12:16 -0600)]
When restoring former window state, append any URLs passed as args

Before, when Dolphin was closed but opened with any URLs, it would open
a new window with only those URLs, rather than restoring any window
state (if the user has this feature enabled).

Now, Dolphin will first restore state (if enabled) and then append any
URLs, rather than replacing the existing set of URLs.

The "new instance" case was previously handled automatically and now
needs to be explictly handled by checking for it, to make sure that new
instances give you a clean window rather than a state-restored window.

BUG: 427274
FIXED-IN: 20.12

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 10 Oct 2020 00:33:01 +0000 (02:33 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoUpdate README.md to gitlab :D
Carl Schwan [Tue, 6 Oct 2020 16:02:54 +0000 (16:02 +0000)]
Update README.md to gitlab :D

5 years agoMerge branch 'release/20.08' into master
Nate Graham [Mon, 5 Oct 2020 21:19:04 +0000 (15:19 -0600)]
Merge branch 'release/20.08' into master

5 years agoWhen an invalid protocol is used, reset the navigator location to the previous url
Jan Paul Batrina [Sat, 3 Oct 2020 13:15:34 +0000 (13:15 +0000)]
When an invalid protocol is used, reset the navigator location to the previous url

BUG: 413478

5 years agoDon't trigger rubberband with back/foward mouse buttons
Ahmad Samir [Thu, 1 Oct 2020 16:21:18 +0000 (18:21 +0200)]
Don't trigger rubberband with back/foward mouse buttons

Right now the back/foward mouse buttons work, but also if you hold either
of them and move the mouse the rubberband selection is triggered.

This is the correct fix (instead of commit d0c71a1435bc9d), to match the
original code before the touch events patches,  we need to check the
back/foward buttons after mouseButtonPressed is emitted and before
triggering the rubberbad selection.

5 years agoDon't warn when closing multiple tabs if restoring window state
Nate Graham [Sat, 3 Oct 2020 15:39:16 +0000 (09:39 -0600)]
Don't warn when closing multiple tabs if restoring window state

When we're using the "restore window state" feature, there's no need to
warn when closing multiple tabs, because they're saved and you can just
re-open the window.

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Sat, 3 Oct 2020 12:10:19 +0000 (14:10 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 38f32d52326bc39b9e27319e9f4e89f94a09bb77)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Sat, 3 Oct 2020 12:10:19 +0000 (14:10 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.08.2.
Christoph Feck [Sat, 3 Oct 2020 10:47:40 +0000 (12:47 +0200)]
GIT_SILENT Upgrade release service version to 20.08.2.

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 2 Oct 2020 06:21:10 +0000 (08:21 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 2 Oct 2020 00:29:19 +0000 (02:29 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoFix build failure after last commit
Elvis Angelaccio [Sat, 26 Sep 2020 15:12:39 +0000 (17:12 +0200)]
Fix build failure after last commit

5 years agoAllow interaction with folder/files with the stylus again
Steffen Hartleib [Sat, 26 Sep 2020 14:53:57 +0000 (14:53 +0000)]
Allow interaction with folder/files with the stylus again

This Patch works for Wayland and X.

BUG: 426582

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 24 Sep 2020 08:10:10 +0000 (10:10 +0200)]
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"

5 years agoSelect/Unselect dialogue: Retain a history of entries made there
Jonathan Marten [Wed, 23 Sep 2020 11:07:29 +0000 (11:07 +0000)]
Select/Unselect dialogue: Retain a history of entries made there

It's a very useful facilitity, and having a history of entries and being
able to recall earlier ones makes it even more useful for repetitive
operations.

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 23 Sep 2020 04:39:00 +0000 (06:39 +0200)]
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"

5 years agoMake "Show hidden files" action follow HIG
Nate Graham [Fri, 18 Sep 2020 00:34:11 +0000 (18:34 -0600)]
Make "Show hidden files" action follow HIG

The action is a toggle action, for which the HIG prescribes that the
text should describe the action's checked state, and neither the text
nor the icon should change when the action is checked. Other toggle
actions in Dolphin follow these rules, but this one does not.

This commit makes the action follow those rules.

5 years agoCheck protocol Class before creating a StatJob
Ahmad Samir [Mon, 14 Sep 2020 14:01:47 +0000 (16:01 +0200)]
Check protocol Class before creating a StatJob

StatJob::mostLocalUrl only works with ":local" protocols, adjust the code
accordingly.

Make the code async.

Remove activeContainerLocalPath() method as it isn't needed anymore.

Drive-by change: minimum required version of Qt should be 5.12 because
that's what KF >= 5.73 already requires.

5 years agoFix mouse back/forward buttons
Ahmad Samir [Sun, 20 Sep 2020 16:38:29 +0000 (18:38 +0200)]
Fix mouse back/forward buttons

We need to emit mouseButtonPressed (now in the onPress method) before the
check needed to not select items on back/foward mouse button press events.

5 years agoExclude trash settings from windows
Alexander Lohnau [Sun, 20 Sep 2020 08:11:37 +0000 (10:11 +0200)]
Exclude trash settings from windows