Commit graph

7035 commits

Author SHA1 Message Date
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 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
Heiko Becker 56ff2bed7e GIT_SILENT Update Appstream for new release
(cherry picked from commit 4986d7c8df)
2022-09-02 23:59:56 +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
Kai Uwe Broulik 06df12013b Places Panel: Don't show error message on UserCanceled
There's no point telling the user what they just did
2022-08-22 19:55:30 +02:00
l10n daemon script 53be1a4ccb GIT_SILENT made messages (after extraction) 2022-08-22 00:49:02 +00:00
Eugene Popov eafe63b5f4 Fix sorting by file extension
Folders don't have extensions
2022-08-21 11:45:01 +00:00
l10n daemon script b5de7d7945 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-08-21 01:51:22 +00:00
Felix Ernst 3ccdcc2176 Clean up code that became redundant through framework changes
There were two changes in framework that triggered this commit:
KHamburgerMenu and KToolTipHelper.

When the Dolphin-specific hamburger menu was replaced by
KHamburgerMenu, I didn't clean everything up correctly. Not
anymore!

Help texts also weren't updated accordingly. This commit replaces
any mention of the old hamburger menu which was called "Control"
with text that reflects the current application state.

The other framework change "KToolTipHelper" takes responsibility
for opening links in help texts. So we won't need code to do this
in Dolphin anymore. This means we can also get rid of some
duplicate help texts which only existed because links didn't work
correctly in some places.
2022-08-18 09:05:03 +00:00
Kai Uwe Broulik fac08af081 Don't include iconOverlays in rolesData if it is empty
If this role isn't in the model yet, it would be `QVariant::Invalid`
which is obviously a distinct type from an empty string list.

This means `KFileItemModel::setData` treats them non-equal and
potentially does expensive operations on the model, which is
called every time a role is resolved in `KFileItemModelRolesUpdater`.

With this change, the number of pointless layout calculations is
significantly reduced.
2022-08-15 15:02:13 +02:00
Felix Ernst f45d2e9854 Add "Invert Selection" and "Select All" to bottom bar
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-14 14:42:40 +00:00
Felix Ernst 6b0dcb62da Simplify implementation of mouse long-press detection
Now uses the same method as for touch long-press detection.
2022-08-14 14:42:40 +00:00
Felix Ernst 0f50abe12d Don't show selection toggle areas on files while in selection mode 2022-08-14 14:42:40 +00:00
Felix Ernst e464b58c33 Address Nate's UX feedback: Episode 2
- 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-14 14:42:40 +00:00
Felix Ernst 261b741d5f Address Nate's UX feedback
-More labels
-More icons
-"Abort" -> "Cancel"
2022-08-14 14:42:40 +00:00
Felix Ernst eb7a2e18ed Make touch tap to select items work in selection mode
Thanks to Steffen Hartleib for the help.
2022-08-14 14:42:40 +00:00
Felix Ernst 2e588733c7 Improve naming consistency and leave mode on Escape 2022-08-14 14:42:40 +00:00
Felix Ernst 78cffd2979 Improve code quality 2022-08-14 14:42:40 +00:00
Felix Ernst 8e55f2c240 Better separation of classes
Make obvious when actions trigger selection mode.
2022-08-14 14:42:40 +00:00
Felix Ernst 402b4a5698 Keep working towards a reviewable state
- Various code improvements
- Smoother animations
- The bottom bar in General Mode only becomes visible if items are
    currently selected
- Removed the selection mode action from the default toolbar since
    it can already be toggled in various ways
- More documentation
- Some cleaning
2022-08-14 14:42:40 +00:00
Felix Ernst 3b7c05b385 Add Selection Mode
The selection mode action is a checkable toggle action named
"Select Files and Folders" which has "Space" as the default
shortcut.

In selection mode a bottom bar with contextual actions is shown.
These should mostly mirror the actions which are available through
the right-click context menu aka DolphinContextMenu.

Resizing of the window might make a overflow button appear in the
bottom selection mode bar.

This commit makes press and hold in the view activate selection
mode. This behaviour is not triggered if the press and hold is
used to either start a rubberband selection or a drag operation
within a short time. The length of the short timeframe is defined
by a QStyleHint. This is currently not implemented in touch
because I can't test it.

Mix the selection mode bars' background colors using a nice
combination of colors from the current color scheme

BUG: 427202
2022-08-14 14:42:40 +00:00
Albert Astals Cid 9dbe481377 GIT_SILENT Update Appstream for new release
(cherry picked from commit c9ab65174b)
2022-08-10 23:33:51 +02:00
Elvis Angelaccio 19cd2364a9 Update copyright and maintainership info 2022-08-05 17:40:20 +02:00
l10n daemon script 86c103e765 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-08-03 01:49:02 +00:00
Alexander Lohnau f506666540 Install dolphinpart actions as standalone file
This will allow Konqueror to use it without relying on the KPart being loaded using KService
2022-08-01 16:35:35 +00:00
Nicolas Fella d7ca76799b Remove service type file for vcs plugins
We don't support old-style plugins any more, so no need to install this
2022-07-30 17:47:40 +02:00
l10n daemon script ef042cbefe 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-07-25 01:46:13 +00:00
l10n daemon script f0749ee42c 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-07-23 01:50:13 +00:00
l10n daemon script d0c3e373a1 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-07-20 01:45:24 +00:00
Nicolas Fella 9bcac452ca Remove references to KServiceTypeTrader in comments 2022-07-18 22:42:39 +02:00
Nicolas Fella 6b5ca39a93 Remove unused includes 2022-07-18 22:38:43 +02:00
Kai Uwe Broulik 1e13885c93 KItemListHeaderWidget: Use QHeaderView font
Makes it consistent with "real" tab widgets.
2022-07-18 15:01:16 +00:00
l10n daemon script d4ed58f6a9 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-07-15 01:51:02 +00:00
Nicolas Fella 513fe3bb42 Port from KNewFileMenu::setPopupFiles to KNewFileMenu::setWorkingDirectory
The former is deprecated
2022-07-14 11:58:19 +00:00
Kai Uwe Broulik 05941a522b Add "Show statusbar" menu entry in "Settings"
Makes this setting more accessible and makes it consistent with other
KDE applications. Since Dolphin has a separate status bar on each view
container and doesn't use kxmlgui's statusbar, we don't get this menu
entry automatically.
2022-07-13 17:13:25 +02:00
Friedrich W. H. Kossebau c6f82aa378 Open >5 terminals dialog: use action terms instead of Yes/No buttons
Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour
of actions terms.
2022-07-13 10:19:59 +00:00
Friedrich W. H. Kossebau a6f6b14e79 Open >5 items dialog: use action terms instead of Yes/No buttons
Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour
of actions terms.
2022-07-13 10:01:23 +00:00
l10n daemon script 8a721c35fc 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-07-13 01:48:42 +00:00
Harald Sitter 8d7e600f63 portalize drag urls
this enables sandboxed application to receive drop events
2022-07-11 09:04:14 +00:00
l10n daemon script 7fdd9f22d8 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-07-10 01:53:09 +00:00
Marius P 35244bec75 dolphintabwidget.cpp piority of boolean operators
Fix PVS-Studio issue "warning: V648 Priority of the '&&' operation is higher than that of the '||' operation.".
Fix clangd issue.
2022-07-09 15:40:28 +03:00
l10n daemon script b1eb12e03a 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-07-09 01:52:00 +00:00
l10n daemon script d4476fab9f GIT_SILENT made messages (after extraction) 2022-07-09 00:48:35 +00:00
Felix Ernst bb1b17ae69 Improve goActions test
This merge request fixes up a little oversight by me. I will merge this as soon as the pipeline passes.

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

Some lines verified that nothing is selected when navigating to a
folder that was not acted on yet. These verifications didn't test
anything meaningful because the folder in question was empty.

This commit adds a file and a folder to the test folder so that
testing if nothing is selected means something.
2022-07-07 13:32:28 +00:00
Felix Ernst c288a48fdc Add two autotests
- The first test makes sure that the width of the places panel
    doesn't change no matter what other panels are shown or hidden.
    There used to be bugs about this.
- The second test is kind of an integration test. It makes sure
    that the go actions work correctly. On two occasions we had
    the regression here that after going "Up" in the file system
    hierarchy the folder one emerged from didn't have keyboard
    focus which makes peeking into multiple folders tiresome.
    The test also makes sure that going back and forward works
    as expected and there are some sanity checks about which
    go actions are enabled, which items are selected and that
    using tabs doesn't interfere with any of that.
2022-07-07 10:41:39 +00:00
Kai Uwe Broulik 74ae8478ac Show "Loading canceled" placeholder when loading was canceled
Rather than "Folder empty", which is misleading as we didn't
actually load anything.
2022-07-07 06:03:12 +00:00
Kai Uwe Broulik 5ebc6b865d Don't reinterpret_cast QEvent
We know that we'll be a `QHelpEvent` from `QEvent::ToolTip`, so do a
static_cast from the event handler (where it's obvious from context),
and then pass it along to `tryShowNameToolTip`.
2022-07-06 17:33:42 +00:00
Friedrich W. H. Kossebau f3a0986b8b ViewPropertiesDialog: use action terms instead of Yes/No buttons
Yes/No buttons in dialogs are discouraged (not only) by KDE HIG
in favour of actions terms.
2022-07-03 19:01:58 +02:00
l10n daemon script 7b4644c084 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-07-03 01:59:38 +00:00
l10n daemon script 710d9af234 GIT_SILENT made messages (after extraction) 2022-07-03 00:50:27 +00:00
l10n daemon script 58a7772a19 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-07-02 02:06:49 +00:00
l10n daemon script 66505d643c GIT_SILENT made messages (after extraction) 2022-07-02 00:52:30 +00:00
Heiko Becker 854c47373a GIT_SILENT Update Appstream for new release
(cherry picked from commit 8887f09b22)
2022-07-01 20:40:59 +02:00
Alain Laporte da2bad9c68 Use edit-clear-history icon
More semantically (and visually) appropriate icon
2022-06-28 07:36:01 +02:00
l10n daemon script a97adfc4fd 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-06-25 02:01:46 +00:00
Andrey Butirsky 73ff57bef4 do not open excessive tab
even if directory of the file to be created is not the top-most opened in
TreeView

BUG: 440663
2022-06-22 21:49:37 +03:00
Andrey Butirsky 0b208fd990 formatting 2022-06-21 15:23:52 +03:00
Laurent Montel 1be92915b0 Remove duplicate headers between cpp/h 2022-06-20 07:09:01 +02:00
l10n daemon script f31ec8bdaa GIT_SILENT made messages (after extraction) 2022-06-20 00:49:44 +00:00
Felix Ernst 5ebf2065d5 Don't consider drops on a row as drops on the row's item
Since d383961719 in details view mode
clicking anywhere within the row is considered a click on the item.
That commit also changed it so that dropping files anywhere inside
a row would make it so the files are received by the folder of that
row.

This commit reverts the drop behaviour to be identical to the old
one.

I am having trouble explaining why this is better because one can
look at it in different ways. Bottom line is that one doesn't
really feel like one is dropping files inside a folder unless the
mouse cursor is actually directly above a folder's icon or name.

Another argument is that it is normal behaviour to just throw files
onto an application and the files then being opened by it.
Having potentially large parts of the view area covered by the rows
of folders means that there has to be more of a conscious effort to
not drop the files inside one of the folders by accident while with
this commit one has to aim precisely onto a folder to do it
intentionally.

CCBUG: 453700
2022-06-16 09:11:36 +00:00
l10n daemon script ebe3a111e6 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-06-16 01:56:58 +00:00
Ahmad Samir 8aa81a1dc7 Cleanup config-dolphin.h includes 2022-06-15 11:28:44 +02:00
Ahmad Samir 28a74d1780 Use cmakedefine01
This way we get a build time warning if the var isn't defined at all, e.g.
a missing check_include_files() CMake call.
2022-06-15 11:28:42 +02:00
Ahmad Samir 8a0003bfbc Use one config-dolphin.h.cmake configuration file 2022-06-15 11:27:55 +02:00
Dāvis Mosāns fc2d181291 Fix rare ToolTipManager crash on exit
If tooltips are enabled and you hover over item
while immediately closing Dolphin sometimes it would crash
because native parent might have been destroyed before
DolphinView
2022-06-15 02:35:19 +01:00
l10n daemon script 957e6309b8 GIT_SILENT made messages (after extraction) 2022-06-14 00:52:42 +00:00
l10n daemon script 6401e69a4f 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-06-13 02:41:50 +00:00
l10n daemon script bce1f06b26 GIT_SILENT made messages (after extraction) 2022-06-13 01:14:51 +00:00
Laurent Montel a7f35a01ce Fix install/load plugins from kf<version> 2022-06-11 13:34:22 +02:00
l10n daemon script eb4a3cb45a 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-06-09 02:11:47 +00:00
l10n daemon script 3207ed3b97 GIT_SILENT made messages (after extraction) 2022-06-09 01:00:49 +00:00
Marius P 8113af62c4 KItemListView fix valgrind issue "Conditional jump or move depends on uninitialised value"
KItemListView::setAlternateBackgrounds(bool) (kitemlistview.cpp:489)
In C++, a data member of an object is not automatically initialized to "zero".
In this case a bool had random values such as the integer 255.
2022-06-07 11:41:21 +00:00
l10n daemon script e406bc197f 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-06-07 02:25:10 +00:00
l10n daemon script ee76ae866e GIT_SILENT made messages (after extraction) 2022-06-07 01:02:15 +00:00
l10n daemon script 579b38050d 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-06-06 01:43:37 +00:00
Heiko Becker 29acb196ab GIT_SILENT Update Appstream for new release
(cherry picked from commit d0fc5bcd3d)
2022-06-04 10:17:29 +02:00
Heiko Becker 6cd3121c38 GIT_SILENT Update Appstream for new release
(cherry picked from commit 716d814019)
2022-06-03 22:36:05 +02:00
Laurent Montel 8df1ea3327 We depend against qt5.15 2022-06-02 07:55:08 +02:00
l10n daemon script 165448bc7f 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-06-02 01:44:29 +00:00
l10n daemon script 67a149b447 GIT_SILENT made messages (after extraction) 2022-06-01 00:56:17 +00:00
Laurent Montel 6ee1e01eb0 It's enabled by default in qt6 2022-05-31 21:13:09 +02:00
Laurent Montel 4fc25d5949 We depend against kf5.91 => remove check 2022-05-31 21:12:01 +02:00
Ahmad Samir ad23079e1b Fix building KF6 with PackageKit-Qt 2022-05-31 14:25:13 +00:00
Ahmad Samir 0d81efae58 Fix build with Qt6 QFont::setWeight()
In Qt5 it takes an int, in Qt6 it takes a QFont::Weight.
2022-05-31 14:25:13 +00:00
Ahmad Samir a07b9054bf Add missing includes needed to build with KF6
Apparently KPluginMetaData was implicitly included by something else.
2022-05-31 14:25:13 +00:00
Ahmad Samir d2f8c4f064 KServiceTypeTrader has been deprecated since KService 5.90 2022-05-31 14:25:13 +00:00
Ahmad Samir 00c26fb390 Fix version macro with respect to finding "KFileItemAction/Plugin" services
GIT_SILENT
2022-05-31 14:25:13 +00:00
Ahmad Samir 2c8adb10ec Port away from deprecated KNewStuff API 2022-05-31 14:25:13 +00:00
Ahmad Samir 397b496470 Merge two relevant ifdef blocks
GIT_SILENT
2022-05-31 14:25:13 +00:00
Ahmad Samir d661bb1a33 Fix building kfileitemmodeltest with KF6
- Fix kio_version.h include
- Explicitly create a QSet for QCOMPARE
2022-05-31 14:25:13 +00:00
Ahmad Samir 49560f921d Port away from copying QEvent when building with Qt6
Copying QEvent in Qt6 isn't allowed, instead use clone().
2022-05-31 14:25:13 +00:00
Ahmad Samir 5d3774aa17 Kdelibs4ConfigMigrator is deprecated in KF6 2022-05-31 14:25:13 +00:00
Ahmad Samir e58f0c085c Port away from deprecated ThumbCreator API
Configurability of individual preview plugins has been deprecated since KIO
5.87.
2022-05-31 14:25:13 +00:00
Ahmad Samir 5cbe6b5302 Migrate old custom view font config entries 2022-05-31 14:25:13 +00:00
Ahmad Samir 802ecc92d2 Simplify custom font settings
Instead of having 3 separate config keys, use the KConfig QFont
de/serilaization.
2022-05-31 14:25:13 +00:00
Méven Car 573abcaf25 kfileitemmodel: sortRoleCompare: allow to sort by access time.
We had all sorts of weird behavior when sorting by access time.
The comparison was simply missing in sortRoleCompare.
2022-05-31 12:21:04 +00:00
l10n daemon script 7b48a8b6e4 GIT_SILENT made messages (after extraction) 2022-05-31 00:55:26 +00:00
Méven Car ca26d35f54 Allow OpenTerminalHere to work for recentlyused:/ and recentdocuments:/ 2022-05-29 12:11:08 +02:00
l10n daemon script 1fc3108f14 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-05-29 01:46:43 +00:00
l10n daemon script 734df72e90 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-05-28 02:27:04 +00:00
l10n daemon script 4cd1b6f9ff GIT_SILENT made messages (after extraction) 2022-05-28 01:06:47 +00:00
Felix Ernst f7365aa9ca Remove hover highlight before opening view context menu
If one was fast to open the right-click context menu on the row of
an item in details view mode, the hover highlight would persist
while the context menu for the view was open.

This one-liner makes it so the highlight on the row is always
removed before the right-click context menu for the view is opened
so it is as clear as possible that the newly opened context menu
has no relation to the fileItem.
2022-05-27 10:00:05 +00:00
Felix Ernst b2f18e411a Fix paste on row while in details view mode
Before this change, right-clicking the row of an unselected item
in details view mode would be in a weird state:
- It didn't really count as a click on the item because the item
    didn't get selected by this click before opening the context
    menu.
- It didn't really count as a click on the view background either
    because the actions that showed up depended on the item in
    that row.

This commit fixes this by considering a right-click in the same row
as an unselected item as a click on the view background.
The behaviour of right-clicking the icon or name of a file directly
is unchanged.

This fixes the following bugs:
- The Paste action that shows up when right-clicking in the
    unselected row of a folder now works (instead of doing
    nothing). It now pastes the clipboard contents onto the view
    background.
- When right-clicking the unselected row of a file (not a folder)
    a Paste action once again shows up.
2022-05-27 10:00:05 +00:00
Travis Burrows 58622f431b Extend selection rectangle to left edge
This commit changes it so the sizes of selection rectangles and hover
highlights in compact and details view mode is identical for all items.

Before this commit, selection rectangles in lists would have varying
indentation of the left edge of the selection rectangle depending on
the preview image's width-to-height ratio. This would cause a sort of
"ragged edge" in both compact and details list view when multiple items
were selected.

This commit doesn't change anything about icon view mode.

BUG: 453046
2022-05-26 12:38:22 +00:00
Jin Liu ca0d0bb322 Change wording "Leading Column Padding" to "Side Padding"
Since it actually adds padding on both left and right sides,
"Side Padding" might be more accurate.

This change is also propagated to variable and method names.

BUG: 453172
2022-05-26 08:31:12 +00:00
Andrey Butirsky ff0a4938a5 fix: Dolphin right click and compress doesn't scroll
For newly created items being selected, we had updateViewState() called
twice, and the first call blocked work execution needed in the other one
2022-05-24 17:11:37 +00:00
Andrey Butirsky a4292cf068 prevent excessive tab opening
Without this, KIO::highlightInFileManager() will open additional tab
even if file to be highlighted is already present in current view
2022-05-24 17:11:37 +00:00
l10n daemon script 30b62a1c04 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-05-22 01:44:35 +00:00
Christian Hartmann 85083b209c fix name of uninstall command (without extension)
fixing a minor typo allows using "uninstall" command (variant **without** extension) on de-installation of a service menu
2022-05-21 15:04:14 +00:00
Christian Hartmann 65413bbad2 fix: service-menu-installer ignoring symlinks on un-install
service-menu-installer ignores <package-name>.tar.gz-dir/uninstall.sh
if this is actualy just a symbolic link to install.sh in the same directory
(hardlinks and copies work)

canonicalPath() is used to get the name of the file on disk and returns install.sh
in the case of a symbolic link. install.sh without any arguments is called instead
of uninstall.sh consequently and no de-installation takes place.

replace canonicalPath() with absolutePath() as used in the rest of source file

resolves:

BUG: 452289
2022-05-21 06:21:08 +00:00
Alexander Lohnau 9bdb36abf0 Fix QDirIterator wildcard when fallback install script is searched for
Otherwise, we do not find scripts like "install-user.sh".

BUG: 453870
2022-05-20 04:26:25 +00:00
l10n daemon script 0caa638a5d GIT_SILENT made messages (after extraction) 2022-05-20 00:47:19 +00:00
Shubham 6a5ad6b0ed Add tooltip to free space info widget showing full disk capacity
BUG: 452867
FIXED-IN: 22.08
2022-05-18 18:42:51 +00:00
l10n daemon script b700c94d3e 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-05-18 01:44:40 +00:00
l10n daemon script e34eba7e0f 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-05-17 01:46:51 +00:00
l10n daemon script 0b27270bee 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-05-16 01:50:33 +00:00
l10n daemon script 2ceaa0ba1b 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-05-15 01:59:30 +00:00
Alexander Lohnau 0fc218fd26 Drop KNS3 prefix for KMoreTools includes
In KF6 KMoreTools should become it's own library and thus the KNS3 prefix should get removed.
Considering that the classes are not in any namespace, having a namespaced include is not needed and only causes noise.
2022-05-13 19:17:06 +00:00
Laurent Montel 6a727b1a7d Port to QStringView 2022-05-11 08:18:02 +02:00
Laurent Montel 421410513d Remove unused include 2022-05-11 08:18:02 +02:00
Méven Car 47014b26b8 KItemList: fix warnings
NO_CHANGELOG
2022-05-08 13:52:51 +02:00
l10n daemon script 2e333e1b97 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-05-07 01:45:00 +00:00
Ismael Asensio 2c91112c61 SearchBox: Add topMargin to balance the spacing 2022-05-06 20:10:04 +00:00
l10n daemon script 553cb880c2 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-05-06 01:46:29 +00:00
l10n daemon script ab9fcf0041 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-05-05 01:47:17 +00:00
l10n daemon script 6b46ebe648 GIT_SILENT made messages (after extraction) 2022-05-05 00:47:58 +00:00
Laurent Montel 013ca76a31 REmove duplicate header between header/file 2022-05-04 20:54:55 +02:00
l10n daemon script 506cdf329c 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-05-04 01:46:27 +00:00
l10n daemon script d958aa57d8 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-05-03 01:50:40 +00:00
oioi 555 9b5f56980b Re-add "Open Terminal Here" feature
This is equivalent to the "Open Terminal Here" feature that existed until Version 20.12.  

If the user has selected folders, replace "Open Terminal" in the context menu with "Open Terminal Here".  
When more than 5 folders are selected, a modal window will ask the user if they are sure they want to
open all 6 or more terminal windows.

In Detail View, users can also select a file, 
which will open a terminal at the location of that file.

BUG: 452637
FIXED-IN: 22.08
2022-05-02 20:25:24 +00:00
l10n daemon script e148329393 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-05-02 01:41:17 +00:00
Felix Ernst 8fda698922 Merge branch 'release/22.04' 2022-05-01 12:10:02 +02:00
Eugene Popov 94bbf13ff7 Fix icon resize animation
This MR fixes an issue where, under certain conditions, an icon resize animation is performed that shouldn't be there.
2022-05-01 10:04:24 +00:00
l10n daemon script 2834e581e0 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-05-01 03:11:08 +00:00
l10n daemon script cef7ea3be6 GIT_SILENT made messages (after extraction) 2022-05-01 02:30:23 +00:00
l10n daemon script ce720337e5 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-05-01 01:55:50 +00:00
l10n daemon script 5a3c57ffb2 GIT_SILENT made messages (after extraction) 2022-05-01 00:54:47 +00:00
l10n daemon script 1a8be1544d 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-04-30 01:42:27 +00:00
l10n daemon script 776d746c67 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-04-29 01:44:43 +00:00
Felix Ernst f08a8dd06b Merge branch 'release/22.04' 2022-04-27 13:08:09 +02:00
Felix Ernst e70e12e3bd Fix terminal panel not keeping up with dir changes
The terminal panel is supposed to show the same location as the
currently active Dolphin view at all times.

However there was an issue when the terminal is supposed to
quickly switch to a new location and then back again to the old
one. The terminal ignored the switch to the old location unless it
had already fully switched to the new location. Because it isn't
particularly fast at fully switching to the new location, it would
never do the expected thing of switching back to the old location.

This commit makes it so the switch to the old location is only
ignored if there are no in-progress switches to a different
location.

BUG: 391380

BUG: 416690

FIXED-IN: 22.04.2

Not totally sure if this fixes everything but it seems like an improvement.
2022-04-27 10:40:40 +00:00
l10n daemon script 8076b54a2c 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-04-27 01:46:00 +00:00
Eugene Popov 57c0c2db7e Revert "Combine modificationtime, creationtime and accesstime roles into one group"
This reverts commit b6640f4a135dce194242644d9d0622c0964e8f1d.
2022-04-26 13:42:04 +03:00
Eugene Popov ee16ff9b48 Eliminate remarks 2022-04-26 13:42:04 +03:00
Eugene Popov 937708e7d0 Combine modificationtime, creationtime and accesstime roles into one group 2022-04-26 13:42:04 +03:00
Eugene Popov e6f142e5e7 Add the ability to sort by file extension
Currently, Dolphin doesn't have the ability to sort by file extension (sorting by type means that files will be sorted by mimetype but not by extension). This MR fixes this shortcoming.

BUG: 429579
2022-04-26 13:42:04 +03:00
l10n daemon script c88ce580e6 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-04-26 01:43:17 +00:00
l10n daemon script 7153234e46 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-04-25 01:52:30 +00:00
Alexander Lohnau be95cd3025 Define MODULE type for KCM libraries
Otherwise, they will have the "lib" prefix
2022-04-24 20:58:47 +00:00
Alexander Lohnau 1618a3ed21 Convert desktop files of plugins to json
Task: https://phabricator.kde.org/T14564
2022-04-24 20:58:47 +00:00
Felix Ernst 6c91dfa47e Don't deselect on Ctrl+Right-Click
(Part of my work towards !273)

Currently, when items are selected and a user right-clicks a selected item
while having the Ctrl key pressed down, the item is first
deselected and then a context menu is opened that doesn't involve
the item that was just deselected.

This is slightly confusing because normally one right-clicks an
item to see its context menu. Right-click being able to deselect
an item seems like unintended functionality in the first place but
in this scenario it also means that the intended opening of a
context menu for the pressed item doesn't even happen.

There is a good chance that nobody is even aware of this behaviour
because the normal way to deselect an item would be to
Ctrl+Left-Click if anything. Why would someone choose to open a
context menu and deselect items in a single step? Why would they
have selected an item they don't want to open a context menu for in
the first place?

Because of a discussion in this merge request deselecting on Ctrl+Middle-Click was also
removed for consistency with Ctrl+Right-Click and
Ctrl+Shift+Middle-Click.

This commit also makes a later implementation of a selection mode
more straightforward.
2022-04-20 21:44:05 +00:00
Kai Uwe Broulik b3c8c1e24e Add additional Document role for "Author"
It comes in handy when organizing your books collection
2022-04-19 21:33:34 +02:00
l10n daemon script 0dfa3611de 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-04-19 01:48:03 +00:00
l10n daemon script 4012ea30c9 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-04-18 02:45:08 +00:00
l10n daemon script fb0a3c03a6 GIT_SILENT made messages (after extraction) 2022-04-17 00:50:15 +00:00
Heiko Becker 3ebe3975a6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 06bd5b2ee9)
2022-04-12 23:17:58 +02:00
Heiko Becker 06bd5b2ee9 GIT_SILENT Update Appstream for new release 2022-04-12 23:17:49 +02:00
Kai Uwe Broulik d5d710ed0a Merge branch 'release/22.04' 2022-04-12 15:47:42 +02:00
Kai Uwe Broulik 0c7f7c92ed [Places Panel] Support drag and drop from Ark
Accepts Ark's special dnd mime types so that archive contents can
be dragged onto a place to extract and/or (mount and) switch to the
hovered location.
2022-04-11 18:01:51 +02:00
Felix Ernst e321a9cc3e Merge branch 'release/22.04' 2022-04-09 11:27:42 +02:00
l10n daemon script c4092e9047 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-04-09 01:51:05 +00:00
Felix Ernst 3bf471e02a Add symmetric padding on right side of details view
There have been some reports that users were unable to figure out
that the padding on the left of the left-most "name" column can be
used for deselecting or for dropping file items. All of these
reports were by people using a Dolphin version in which that
padding was way too narrow because of a regression (that has since
been fixed). Nonetheless this highlights the potential problem that
some users might be unable to notice/figure out the usefulness of
the left padding.

This commit adds a similar area on the right side of the view when
the column widths are set automatically by Dolphin. The width of
the right padding column mirrors the width of the left padding
column when sized automatically. Both can manually be hidden or
resized similarly to resizing other columns.

There are various usability advantages to having this padding by
default on both sides of the view and not only on the left:
- The right margin is more discoverable since the item highlight
    ends right before the padding column
- Less mouse travel time to reach either of the areas
- More than double the likelihood of users figuring out the
    advantages of these padding areas for deselecting or dropping
- More visual symmetry

I had suggested also having this kind of right padding even before
the initial implementation of the left padding. The contributor
implementing it was in favour of it. It only wasn't implemented
because the contributor said it was impossible without a lot of
work. Turns out adding two characters at the right position seems
to suffice in most ways.

This commit does not contain the string change of renaming "Leading
Column Padding" to "Column Padding" (since it changes two paddings
now) to not infringe on the string freeze.

BUG: 452273
2022-04-08 11:44:58 +02:00
l10n daemon script e50ff16e68 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-04-07 02:58:35 +00:00
l10n daemon script 9a334caf7d 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-04-07 01:45:45 +00:00
l10n daemon script 50c3be0ca0 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-04-05 02:58:27 +00:00
l10n daemon script 989d19c126 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-04-05 01:51:00 +00:00
Felix Ernst 86df5ae994 Merge branch 'release/22.04' 2022-04-04 14:42:02 +02:00
Felix Ernst 2de8f4c0fb Improve details mode ctrl-press rubberband creation
Since d383961719 dragging the
highlighted row of already selected items in the details view mode
will begin a drag operation of all selected items.

As a unintended side-effect of this change, dragging the row of a
previously unselected item while holding the control key would also
begin a drag operation.

After this commit, dragging the row of a previously unselected item
while holding the control key in details view mode will instead
create a rubberband. Ctrl-dragging the item's icon or text directly will drag the item as expected.

With this change, using multiple rubberbands to select scattered
items among a list of items should be as convenient as it was
previously.

BUG: 452181
2022-04-04 12:39:37 +00:00
Felix Ernst fc965a725c Merge branch 'release/22.04' 2022-04-04 12:59:29 +02:00
Felix Ernst a4f9974daf Revert "KStandardItemListWidget: handle RtL drawing properly"
This reverts commit 3ce9d1d19e.
This reverts commit ddba4f5fd8.

Aside from the two bugs mentioned below, this also fixes another
regression: The spacing on the left of the view does now once again
follow the size of its column header.

BUG: 451704
BUG: 451341
2022-04-04 10:54:42 +00:00
Felix Ernst b3add25694 Refactor DolphinContextMenu so its actions are retrievable
This mostly red MR should have no visible effect. It is part of my work towards !273.

There are two calls necessary to open the DolphinContextMenu:
One to construct it and one to execute/show it.

Before this commit, the actual populating of the ContextMenu was
done on execute. This meant that the actions of the ContextMenu
couldn't be looked at or changed without first showing the Menu
to the user. It also meant that the construction itself didn't
actually do much constructing/populating at all which might seem
a bit unintuitive.

This commit changes this behaviour so the DolphinContextMenu is
actually populated fully on construction. The executing/showing of
the ContextMenu now does just that and nothing more.

Previously, some actions in the context menu were actually not
wired up to anything and instead the DolphinContextMenu or the
DolphinMainWindow executed some code after the user had clicked
such a dummy action from the ContextMenu. Now all the actions are
properly constructed beforehand and no special handling is
necessary when the ContextMenu hides itself.

This commit removes the pos parameter from the DolphinContextMenu
constructor. This parameter contained the position where the Menu
would be shown later. This information isn't necessary to have on
construction and was already part of the exec(pos) call in the
first place. The variable m_pos that stored the value is removed.

This commit also removes a "customActions" functionality that can
supposedly be used to add further custom actions to the
DolphinContextMenu but this functionality isn't ever used
anywhere so its usefulness is questionable. It also wouldn't be
difficult to re-add this functionality if it was ever required for
something.

This commit also addresses an old TODO in dolphinpart.cpp that
asked for the calls for opening the DolphinContextMenu to actually
contain the information for which items the DolphinContextMenu is
supposed to be constructed. Before this, only the item that was
directly clicked was transmitted and then DolphinContextMenu
retrieved the currently selected set of items by itself.
It makes more sense that DolphinContextMenu would be informed on
construction which items it is supposed to show context actions
for.

Most of this is necessary so we are able to show the contextual
actions anywhere else than in the ContextMenu in the future.

I am targeting 22.08 with this MR because it makes no sense to merge a refactor for the upcoming release already.
2022-04-02 17:00:58 +00:00
Alexander Lohnau 0c38a27cc0 Install servicemenus in new install location
Since KIO 5.85, this new file location is preferred over the
KServiceTypeTrader results.

With this change, single desktop files from the KDE store are installed
in the correct location. If however a custom install script is used,
developers need to adjust their scripts.

Because the "kio/servicemenus" locations is different than the one
KAuthorized allows by default, we have to mark the file as executable.

Task: https://phabricator.kde.org/T14543
2022-04-01 17:55:11 +00:00
Felix Ernst 0e15ff7f14 Merge branch 'release/22.04' 2022-04-01 12:17:25 +02:00
George Florea Bănuș 29383426d6 Fix tooltip closing while mouse moves over item
The itemHovered signal is emitted whenever the mouses moves causing the
tooltip to close.
2022-04-01 10:12:05 +00:00
l10n daemon script 356ccd21b4 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-04-01 02:03:03 +00:00
Nicolas Fella 3ccc0420a6 Merge branch 'release/22.04' 2022-04-01 00:13:19 +02:00
Nicolas Fella 1041b52c7a Don't crash when mountpoint is not found
findByPath may return a nullptr, in that case don't access it

BUG: 452100
2022-03-31 23:24:59 +02:00
Kai Uwe Broulik 64ffcdad4f [ToolTipManager] Create DolphinFileMetaDataWidget on-demand again
This reverts b7fbd19a76 but creates the
widget only once and then reuses it.

However, ownership of a parent-less widget is transferred to the
`KToolTipWidget` but since we first request metadata, then show the
tooltip (or won't if the mouse moved on since), we cannot rely on
the `KToolTipWidget` exclusively.

Instead, when we still delete the widget ourself until we have
shown the `KToolTipWidget` once at which point it will handle the
life time for us.

This fixes parenting the widget to `DolphinView` which would make
it appear as a broken line in the top left of the window.
2022-03-31 14:22:24 +02:00
l10n daemon script a8966d230c 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-03-29 03:51:20 +00:00
l10n daemon script c7531ba749 GIT_SILENT made messages (after extraction) 2022-03-29 03:00:38 +00:00
l10n daemon script 447c35868c 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-03-29 02:21:23 +00:00
l10n daemon script d658c7e090 GIT_SILENT made messages (after extraction) 2022-03-29 00:58:32 +00:00
Kai Uwe Broulik df75b31304 Merge branch 'release/22.04' 2022-03-28 17:09:52 +02:00
Kai Uwe Broulik 466fa20f7f [ViewProperties] Apply better default roles for special views
This adds the following additional special view modes (some of them were
already there but broken because they weren't applied, or were
changed to have better defaults now that they are actually used):

* Recent Files and Recent Documents, timeline:
  Details view with grouped sorting enabled and Name, Path, Modified
* Search For Images:
  Icon view with Name, Dimensions, Date Time of the Picture
* Search For Audio:
  Details view with Name, Artist, Album, Duration
* Search For Videos:
  Icon view with just Name
* Search For everything else, including Documents:
  Details view with Name, Path, Modified
* Trash:
  Details view with Name, (Original) Path, Deletion Time

BUG: 400969
BUG: 340393
BUG: 186376
FIXED-IN: 22.04.0
2022-03-28 14:56:49 +02:00
Kai Uwe Broulik e304aa79b4 [ViewProperties] Consider existing roles in convertAdditionalInfo
Otherwise all default overrides for roles we perform in this class are moot.
2022-03-28 14:52:15 +02:00
Nicolas Fella b7fbd19a76 Reuse metadata widget when creating tooltips
Currently any time we hover the mouse over a file we create a new DolphinFileMetaDataWidget (even when we don't actually show a tooltip).

That is quite wasteful

Instead we can reuse the existing instance and only change the URL
2022-03-25 11:18:46 +01:00
Steffen Hartleib f509d41baf Using the gesture recognizer from KWidgetsAddons
Using the gesture recognizer from KWidgetsAddons, so that the source code for the gestures is only in one place
2022-03-23 22:00:31 +00:00
Felix Ernst 45af4bc0e0 Allow for more explicit button labels
This commit allows us to very explicitly refer to any set of items
in text. This way buttons don't need to be labeled generically
like "Permanently Delete" but can be enriched to be labeled
"Permanently Delete "FileName"" or "Copy 7 Selected Folders" or
"Copy 6 Files" or "Rename "file1", "file2", "file3", "file4" and
"folder5"".

This commit tries to save translators a lot of work by using a
translation puzzle. This might be problematic for some languages.
The alternative on the other hand would mean that any label which
wants to be explicit would need to have over 10 translations just
for one label which seems quite bad as well.

A fallback is to be implemented for languages that can't really
accommodate for any specific word puzzle. This is explained in the
documentation.
2022-03-23 15:03:32 +00:00
l10n daemon script 0a9c018497 GIT_SILENT made messages (after extraction) 2022-03-23 02:46:59 +00:00
l10n daemon script 49726ad591 GIT_SILENT made messages (after extraction) 2022-03-23 00:58:56 +00:00
Nicolas Fella 1cd00946c4 Port to target-based ecm_add_app_icon 2022-03-21 20:43:31 +01:00
Nicolas Fella 05132a2f1d Port to target-based ecm_add_app_icon 2022-03-20 20:16:04 +01:00
l10n daemon script 109eb3334d 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-03-20 03:39:12 +00:00
l10n daemon script 3c1ebfcfb1 GIT_SILENT made messages (after extraction) 2022-03-20 02:49:46 +00:00
l10n daemon script fa72ae8577 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-03-20 02:14:36 +00:00
l10n daemon script 990c6e7aa5 GIT_SILENT made messages (after extraction) 2022-03-20 00:55:37 +00:00
Kai Uwe Broulik 3fab07c967 Prettify labels in back/forward button menu
Adds a compact label based on the closes place similar to the
address bar (e.g. instead of /home/user/Pictures/Holidays it will
show Pictures/Holidays), unless "show full path in address bar"
is enabled.

Also, add the folder icon
2022-03-18 19:57:13 +01:00
Laurent Montel c6bccbf6de Fix some compile error against qt6 2022-03-15 13:30:13 +01:00
Anthony Fieroni 94acf0ba0b Pass dolphin view as parent widget to plugins
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2022-03-11 08:20:09 +02:00
l10n daemon script ecda1e9500 GIT_SILENT made messages (after extraction) 2022-03-11 00:51:19 +00:00
l10n daemon script 7c6a34222c 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-03-07 01:44:55 +00:00
l10n daemon script 3366f62b09 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-03-05 01:48:28 +00:00
l10n daemon script 62f1897e59 GIT_SILENT made messages (after extraction) 2022-03-05 00:47:08 +00:00
Kai Uwe Broulik df79f5b477 [Places Panel] Reject drops on unwritable locations
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-03-04 18:25:38 +00:00
David Edmundson b6e03e05f4 Fix issue where newly inserted items end up in the wrong directory
If we have directory "a" and "a/b" and expand both, then collapse "a" we
tell KDirWatcher to stop watching both these directories.

However, KDirWatcher keeps them in the listersCurrentlyHolding list as
well as the listersCurrentlyListing list and will still notify of
changes. If a new file appears in "a/b/" we will still get change
notifications.

When dolphin processes these changes we cannot find the relevant parent
node. It then gets confused and inserts the item into the root directory
from the POV of the model notifications. When we then open the relevant
folder the model knows a node with that URL exists and fails to add it
correctly.

This can also be reproduced by continually downloading files into a
subdirectory tree and rapidly expanding and collapsing folders a few
levels deep.
2022-03-04 10:57:16 +00:00
Felix Ernst cd369a1519 Always select items on activation
There is an unintended side-effect in
d383961719 which this MR fixes.

Normally in Dolphin, when clicking on an item to open/activate it,
it is both selected by the click and opened/activated.

Prior to this MR, the item wasn't selected when all of these
conditions were met:
- Use ActivateItemOnSingleClick also knwon as single-click mode
- Have more than one item selected already
- Click on an item that was previously not selected

Prior to this MR, the click would deselect all items and
activate the clicked item but not select it.

With this MR, the click will deselect all items, activate
the clicked item and also select it and move the anchor there.

When testing this with folders, make sure to navigate back after activating the folder. The folder should then still be selected.

This is then consistent with the behaviour when the specific
conditions mentioned above are not met.
2022-03-04 10:41:50 +00:00
Janet Blackquill e8dc49e4b2 KItemListHeaderWidget: don't crash if widget == nullptr
BUG: 449238
2022-03-03 16:02:29 +00:00
Stefano Crocco 505bf52f59 Display Apply button in KCMs
When displaying the KCMs in another application's configuration dialog
(for example, in Konqueror), the Apply, Ok and Reset buttons aren't
shown. This issue is caused by a missing Apply flag in the call to
setButtons in the KCModule constructor.

the fact that in the call to setButtons
from the KCModule constructor, the Apply flag is missing.

BUG: 448352
2022-03-01 12:00:37 +01:00
Heiko Becker f73183c0f6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 3ac70fe65b)
2022-02-27 19:01:08 +01:00
l10n daemon script 7a9aa9076f GIT_SILENT made messages (after extraction) 2022-02-27 00:52:17 +00:00
Jan Blackquill 3ce9d1d19e KStandardItemListWidget: don't double up the expansion offset 2022-02-26 00:48:00 -05:00
Kai Uwe Broulik c68f1f6f8d Merge branch 'release/21.12' 2022-02-25 21:03:36 +01:00
Eugene Popov 8250961206 [CompactView] Remove animation on file rename
This MR fixes an issue where the label is cut off when renaming in Compact View mode.

BUG: 449179
FIXED-IN: 22.04
2022-02-25 19:37:01 +00:00
Ismael Asensio c623522ecb [DolphinQueryTest] Fix class name duplication 2022-02-25 19:23:18 +00:00
Janet Blackquill ddba4f5fd8 KStandardItemListWidget: handle RtL drawing properly
BUG: 449211
2022-02-25 16:35:05 +00:00
Kai Uwe Broulik d031696a92 Fix rating pixmap alignment on high-dpi screens
When calculating layout geometry based on the pixmap size,
one needs to divide by `devicePixelRatio`
2022-02-23 20:44:22 +01:00
Kai Uwe Broulik cd81906550 Ignore empty roles for textRect calculation
Avoids a text rect taller than the area that actually contains text,
as can be seen by hovering files in a folder with "additional roles"
that a given file does not contain.
2022-02-23 20:27:33 +01:00
l10n daemon script d774088a52 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-02-20 01:50:36 +00:00
l10n daemon script 78753ad23c 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-02-18 01:51:42 +00:00
l10n daemon script c0f86d3a58 GIT_SILENT made messages (after extraction) 2022-02-16 02:18:21 +00:00
l10n daemon script b6e47b4750 GIT_SILENT made messages (after extraction) 2022-02-16 00:48:33 +00:00
Eugene Popov a05343530d Fix zooming animation
Current implementation of the zooming animation is a bit buggy.
This MR fixes the following issues:
* in the Icon view mode, the icons sometimes "jump"
* in the Compact view mode, the labels sometimes are cut off

BUG: 449179
2022-02-13 12:16:34 +00:00
Kai Uwe Broulik e9bd295b3c [Places Panel] Make use of KFilePlacesView::dragAutoActivationDelay
Code moved to KIO
2022-02-07 07:29:35 +00:00
Ben Cooksley d0898592a1 Use the CDN based endpoint rather than the legacy endpoint which hits our download redirector.
CCMAIL: distributions@kde.org

(cherry picked from commit 694e4e2452)
2022-02-07 06:19:51 +13:00
l10n daemon script 32c072fe5f 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-02-06 01:58:24 +00:00
Kai Uwe Broulik 0dac70d059 Hide "Places" section header when panels are unlocked
Avoids showing "Places" twice.
2022-02-05 22:18:28 +00:00
Kai Uwe Broulik f645e6b4b2 Store model as a DolphinPlacesModel
Because that's what it is. It's a subclass anyway but saves us some
casts in the future.
2022-02-05 22:18:28 +00:00
l10n daemon script cd6664c569 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-02-05 01:47:47 +00:00
Nicolas Fella ce7852fb23 Merge branch 'release/21.12' 2022-02-04 12:58:29 +01:00
Nicolas Fella 3b4676b387 Fix opening FTP files in their preferred app
When passing an URL like ftp://foo/bar.txt OpenUrlJob opens it in the default handler for ftp urls, not the one for txt files, which would be more appropriate here

By passing along the mimetype we can change that behavior to what we want

BUG: 443253
2022-02-04 00:18:00 +01:00
Méven Car 08a9aaad2c InformationPanel: Improve video arrow overlay appearance 2022-02-02 18:16:59 +01:00
Bharadwaj Raju 487e95376d Don't set ignoreMaximumSize on preview jobs for slow files
With this change (plus https://invent.kde.org/frameworks/kio/-/merge_requests/702), slow files will be treated as remote files for generating previews. This should make browsing local mounts of remote locations smoother.
2022-02-02 09:41:10 +00:00
Méven Car 851b356f38 Dimension role: use × instead of x 2022-01-31 20:35:58 +01:00
Nicolas Fella ca35c71f3d Improve placeholder message for unassigned tag
When opening tags:/ we show 'No tags' when there are no tags found.

When opening a tag that exists but doesn't have any files associated we show the same message, which isnt't appropriate.

Instead show "No files tagged with 'foo'", which makes more sense
2022-01-31 18:16:29 +00:00
Kai Uwe Broulik 1c5b6d4d10 Add "Unlock panels" to main window context menu
It's the Qt-provided one that shows on the menu bar
and dock widget title bars.
2022-01-31 12:06:08 +00:00
Kai Uwe Broulik d68bb06e89 Sync panel action icon to built-in toggleViewAction
Ensures the icon is used consistently also in Qt-provided UI
2022-01-29 20:33:23 +00:00
Felix Ernst 64af89a3ff Fix my previous bad merge
I failed to notice that the changes didn't apply cleanly. With this
commit everything should be a-okay again.
2022-01-29 18:47:40 +01:00
Felix Ernst 793ad44cb8 Merge branch 'release/21.12' 2022-01-29 18:14:49 +01:00
Eugene Popov 43e915213e Revert "[DetailsView] Improve zooming"
This reverts commit 7908aff3b5.

Reverting this commit will fix the issue of not being able to rename
the last file in Details View and will also make the items in Details
View and Compact View have the same height.

BUG: 447215
FIXED-IN: 21.12.2
2022-01-29 16:35:47 +00:00
Heiko Becker 26ac2f6e0a GIT_SILENT Update Appstream for new release
(cherry picked from commit 9d08bb5b97)
2022-01-28 23:29:52 +01:00
Heiko Becker 9d08bb5b97 GIT_SILENT Update Appstream for new release 2022-01-28 23:29:39 +01:00
l10n daemon script 166e71533e 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-01-28 01:45:57 +00:00
Jan Blackquill 65846125d7 Make group headers mirror rtl 2022-01-25 23:49:03 +00:00
Stephan Sahm d71b617205 Expose konsolepart shortcuts in Dolphin's shortcuts view
Adapt some changes from Yakuake a0b08cb1f7

credit to Stephan Sahm @schlichtanders

BUG: 428265
2022-01-25 17:33:01 +00:00
Kai Uwe Broulik 94262a1c02 Add "Dimensions" (width x height) role
It is more convenient to use than individual width and height properties
2022-01-25 13:34:29 +01:00
Kai Uwe Broulik 7c5af3f88e [Places Panel] Stop drag activation timer when dropping
Avoids switching folders after a drop while interacting with
the Copy/Move/Link menu.
2022-01-24 17:44:03 +01:00
l10n daemon script d04cc67786 GIT_SILENT made messages (after extraction) 2022-01-24 02:10:57 +00:00
l10n daemon script f3cf4e3ae1 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-01-24 01:45:03 +00:00
l10n daemon script d192c8984f GIT_SILENT made messages (after extraction) 2022-01-24 00:46:18 +00:00
Kai Uwe Broulik d832216159 [Tab Bar] Accept proposed action only ontop of a tab
You cannot drop a file/folder onto the empty area of the tab bar,
so show the appropriate "not allowed" cursor.
2022-01-23 18:49:24 +00:00
Jan Blackquill b81d3fbbbb KItemListViewLayouter: handle grid view layouts in RtL properly 2022-01-19 22:29:18 +00:00
Snehit Sah 0a311a5288 Add content rating
Signed-off-by: Snehit Sah <snehitsah@protonmail.com>
2022-01-18 15:46:08 +00:00
Tom Lin d383961719 Full row highlight implementation
This commit implements full-row selection and hover highlights for the
details view mode.

This commit also contains fixes for 444680, 444753, both uncovered
during this change.

BUG: 181438
BUG: 444680
BUG: 444753
FIXED-IN: 22.04
2022-01-16 14:01:32 +00:00
Laurent Montel a286506405 We depend against kf5.91 2022-01-15 17:44:36 +01:00
Laurent Montel c21a02bcab Adapt build system for building against qt6 2022-01-14 08:04:01 +01:00
Alexander Lohnau 8bc7f72a73 Utilize ecm_set_deprecation_versions to exclude deprecated API 2022-01-14 07:13:20 +01:00
Alexander Lohnau 63124f569c Port away from deprecated I18N*_NOOP macros 2022-01-13 21:41:19 +01:00
Kai Uwe Broulik af2baf8047 Remove KStandardItem and KStandardItemModel
They were used by the custom places panel and are now unused.
2022-01-11 13:43:44 +01:00
Kai Uwe Broulik 0603e18cd4 Port back to KFilePlacesView
This removes the custom-view engine version of the places panel
and replaces it with the upstream `KFilePlacesView` from KIO.
2022-01-09 18:09:10 +01:00
Claudio Cambra 3abc4cfcd4 Add Flatpak patches to Dolphin depending on CMake definition
When Dolphin gets packaged as a flatpak, this patch gets applied:

https://invent.kde.org/packaging/flatpak-kde-applications/-/blob/master/dolphinpatch.patch

That's not really an ideal solution, so this is probably a better idea -- to upstream the patches and apply them depending on a CMake definition
2022-01-04 21:53:44 +00:00
Alexander Lohnau dafa1e1f20 Utilize KIO::PreviewJob::availableThumbnailerPlugins method to fetch available preview plugins 2022-01-04 17:07:38 +00:00
Heiko Becker 9185c5128e GIT_SILENT Update Appstream for new release
(cherry picked from commit 306e7e2493)
2022-01-03 22:19:57 +01:00
Heiko Becker 306e7e2493 GIT_SILENT Update Appstream for new release 2022-01-03 22:19:47 +01:00
Alexander Lohnau 795406e21b Load service menus for settings from new file location
This is a replacement for the KServiceTypeTrader loading.
Because third parties still use the KServiceTypeTrader file location, we need to
support both for the time being.
2022-01-02 10:13:27 +01:00
Alexander Lohnau e447b88296 Version control plugins: Remove defunct KServiceTypeTrader query for available plugins
We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings
2022-01-02 10:04:56 +01:00
l10n daemon script f386f848de 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-01-02 02:03:50 +00:00
Nate Graham 28ecfd5a34 Improve sudo/kdesu error message
Now that you can get elevated privileges while using the app, we can
display a more useful and descriptive error message when people try to
run Dolphin using `sudo` or `kdesu`.

Also bump the frameworks dependency to 5.90 since that's the KIO
version that includes this change, so we can be sure that the message is
always accurate.
2021-12-31 10:38:19 -07:00
l10n daemon script c40fe3b886 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"
2021-12-31 01:44:30 +00:00
Ben Cooksley 694e4e2452 Use the CDN based endpoint rather than the legacy endpoint which hits our download redirector. 2021-12-30 07:31:41 +13:00
Fushan Wen eb0a7da653
kitemlistview: Port KItemListView::itemAt to std::optional
Use `value_or(-1)` for those functions that don't use `std::optional`.
2021-12-28 22:48:28 +08:00
l10n daemon script c071150b7d 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"
2021-12-28 01:43:52 +00:00
Leo Treloar 4b224516f4 Add name-only tooltip and make logicalHeightHints a pair of qreal and bool 2021-12-28 11:48:23 +11:00
Leo Treloar e46e982dbd Change default value of MaximumTextLines to 3
The previous default of allowing an unlimited number of text lines to be
displayed in icon view can lead to very large, inconsistent, and
unattractive gaps between rows. Capping this by default makes things
look much neater.
2021-12-24 17:07:54 +11:00
l10n daemon script b38d7150d9 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"
2021-12-20 01:45:56 +00:00
Alexander Lohnau 2f62b054ea GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path 2021-12-19 14:10:13 +01:00
Kai Uwe Broulik caf49dafa5 Merge branch 'release/21.12' 2021-12-18 15:17:39 +01:00
Kai Uwe Broulik b2c137fdb7 Use QUrl::toDisplayString when presenting to the user
Strips out password information
2021-12-18 14:09:53 +00:00
l10n daemon script c39ce059d6 GIT_SILENT made messages (after extraction) 2021-12-18 02:14:50 +00:00
l10n daemon script e980dd20d6 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"
2021-12-18 01:49:43 +00:00
l10n daemon script ff693a00c8 GIT_SILENT made messages (after extraction) 2021-12-18 00:46:07 +00:00
Alessio Bonfiglio 65b18bf935 Enable Ctrl/Shift-Click to open folder in a new tab/window
and more
2021-12-17 14:11:46 +00:00
Nicolas Fella 3c5bf0c96c Remove calls to no-op KNewFileMenu::setViewShowsHiddenFiles
The implementation doesn't do anything
2021-12-16 20:09:45 +00:00
Kai Uwe Broulik 4bfc339bac [Information Panel] Remove unused PlacesItemModel 2021-12-16 12:06:51 +00:00
Alexander Lohnau 55785991be Remove deprecated call to KParts::PartBase::loadPlugins.
With https://invent.kde.org/frameworks/kparts/-/merge_requests/32 this method got deprecated,
and with https://invent.kde.org/network/konqueror/-/merge_requests/99 only the kget plugin is actually loaded.

https://invent.kde.org/network/konqueror/-/merge_requests/100 Takes care of importing the kget plugin to konqueror.
2021-12-16 07:06:58 +00:00
l10n daemon script 02e8789ec2 GIT_SILENT made messages (after extraction) 2021-12-15 02:25:55 +00:00
l10n daemon script 1421af70eb 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"
2021-12-15 01:57:54 +00:00
l10n daemon script b4e3c2645e GIT_SILENT made messages (after extraction) 2021-12-15 00:48:33 +00:00
Alexander Lohnau ec0baf067d Port deprecated QDateTime::toTime_t method call 2021-12-13 10:40:02 +01:00
Alexander Lohnau fd717b88fa Drop now unneeded QOverload statements
By defining the KF_DISABLE_DEPRECATED_BEFORE_AND_AT and QT_DISABLE_DEPRECATED_BEFOREvalues,
the deprecated overloads are hidden. This way we only have the un-deprecated one visible.
2021-12-13 08:35:26 +00:00
l10n daemon script fbe1ecaa6a 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"
2021-12-12 01:48:07 +00:00
Albert Astals Cid 0d35d8963a GIT_SILENT Update Appstream for new release
(cherry picked from commit 438f6cc434)
2021-12-11 02:58:40 +01:00
l10n daemon script ce8d4e5bcd 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"
2021-12-11 01:42:51 +00:00
l10n daemon script 4451c9f2df 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"
2021-12-10 01:45:23 +00:00
Albert Astals Cid 438f6cc434 GIT_SILENT Update Appstream for new release 2021-12-09 17:05:02 +01:00
Kai Uwe Broulik 188b73e7d4 Show OpenUrlJob errors as inline message
Avoids an ugly message box when opening a file fails or is forbidden.
2021-12-08 16:59:05 +01:00
l10n daemon script 1035f182b1 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"
2021-12-08 01:48:36 +00:00
l10n daemon script 01e2a04467 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"
2021-12-07 01:46:49 +00:00
luz paz fde79c09cb Fix various typos
Found via `codespell -q 3 -S *.desktop,*.xml`
2021-12-06 07:59:23 -05:00
l10n daemon script 73e919a4f3 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"
2021-12-06 01:44:56 +00:00
l10n daemon script 6cd5e10f22 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"
2021-12-05 01:44:08 +00:00
Tornado 99 45bf40d422 Add Microsoft Windows and Mac OS X equivalents as keywords to help new users, org.kde.dolphin.desktop 2021-12-04 15:13:42 +00:00
l10n daemon script eeaadaf995 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"
2021-12-04 01:44:59 +00:00
l10n daemon script 9ec88ec1ae 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"
2021-12-03 01:47:17 +00:00
Paul Brown 1939609e70 Tweaked showFilterBar tooltip text for accuracy 2021-12-02 18:02:40 +00:00
Eugene Popov 2ef87708fd [Location Bar] Add the ability to show hidden folders in the subdirectories popup 2021-12-02 09:03:47 +00:00
Alexander Lohnau f1756dd141 Port deprecated QLayout::margin call
As the method impl suggests, the left value is preferred if all the values are the same.
This is the case for the given layout.

```cpp
int QLayout::margin() const
{
    int left, top, right, bottom;
    getContentsMargins(&left, &top, &right, &bottom);
    if (left == top && top == right && right == bottom) {
        return left;
    } else {
        return -1;
    }
}
```
2021-12-01 22:10:58 +00:00
Alexander Lohnau fb483636e8 Port away from deprecated KFileItemActions::runPreferredApplications overload 2021-12-01 22:10:58 +00:00
Alexander Lohnau bff2ef9385 Port away from deprecated QDateTime::.toTime_t method 2021-12-01 22:10:58 +00:00
Alexander Lohnau e30494323d Port deprecated QFontMetrics::horizontalAdvance 2021-12-01 22:10:58 +00:00
Alexander Lohnau 906622ee2a Port away from deprecated KFileItemActions::addOpenWithActionsTo method
Instead of the KServiceTypeTrader constraint, pass the desktop file name
as part of the exclude list to the method call.
2021-12-01 22:10:58 +00:00
Alexander Lohnau a8ac157bdc Port away from deprecated KDesktopFileActions::userDefinedServices overload 2021-12-01 22:10:58 +00:00
Alexander Lohnau 82202a24e2 Port away from deprecated KPluginLoader 2021-12-01 22:10:58 +00:00
Alexander Lohnau 6228921f10 Load trash KCM using KPluginMetaData
The QString overload uses KServiceTypeTrader, which is deprecated
2021-12-01 22:10:58 +00:00
Nate Graham 36c9b52db4 Use standard Keywords= instead of X-KDE-Keywords=
There's nothing KDE-specific about these keywords.
2021-12-01 09:49:25 -07:00
Felipe Kinoshita 416b164ce0
Add some keywords to desktop file 2021-11-30 16:24:09 -03:00
Nate Graham 82b542cb2b Merge branch 'release/21.12' 2021-11-29 10:25:06 -07:00
Nate Graham 4b530c91c1 Use new "edit-copy-path" icon for "Copy Location" menu item
This is safe to change without a fallback icon explicitly specified
because if it doesn't exist in the active icon theme, it will fall back
to edit-copy which is a standard FreeDesktop icon name present in
every icon theme ever.

CCBUG: 423937
2021-11-29 10:23:06 -07:00
Kai Uwe Broulik 04e3c227cb Merge branch 'release/21.12' 2021-11-29 13:31:46 +01:00
Kai Uwe Broulik ec8f757f9c [Status Bar] Don't mess with status bar visibility in extensions
"Extensions" is additions to the status bar like free space bar
and zoom slider which should hide while loading.

The status bar itself should only show/hide based on the global setting.

BUG: 443132
2021-11-29 11:34:22 +01:00
Eduardo Cruz 3d49996615 Properly display parent folders when filtering is active and items are added or refreshed
The methods slotRefreshItems(), slotItemsAdded() and slotItemsDeleted()
are adapted so they are now compatible with the new behavior of
filtering expanded folders achieved in
ed83f37f06. The new behavior is that
expanded folders are hidden from view if neither the folder itself
nor any of its contents passes the filter. Previously expanded folders
would always stay visible no matter the filter.

A bug where the parent expanded folder would disappear after adding
or refreshing an item while filtering is also fixed.

Tests are added to make sure these behavior changes won't regress.

BUG: 442275
FIXED-IN: 22.04
2021-11-28 13:24:32 +00:00
Fushan Wen 4585f215a9 Move "Default" option to the front in "Select Remote Charset" menu
The ordering of encodings is different from other KDE apps in
"Select Remote Charset" menu. We should keep the UI consistency.

BUG: 445148
2021-11-27 17:51:14 +08:00
Kai Uwe Broulik cdb4a7909d KFileItemModelRolesUpdater: Generate thumbnails for visible files first
Folder thumbnails are not cached as we cannot know whether something
inside a folder changed. Moreover, they are also a collage of several
files and might even traverse into subdirectories. This takes time.
2021-11-23 16:52:59 +01:00
Eugene Popov 1657216474 Fix updating window and tab titles
This MR fixes an issue where the window and tab titles don't properly handle creating/deleting/renaming items in the places bar, as well as switching to the Search mode.
2021-11-13 18:20:59 +02:00
Andreas Kainz 5bb6bf8d1e Dolphin preferences dialog use now for everything colorfull icons 2021-11-13 10:44:21 +01:00
Felix Ernst 81c32c18a5 Port ViewModeSettings from macros to std::variant
Macros should be avoided if possible. Instead this commit replaces
the usage of macros with an std::variant of the ViewModeSettings.

As part of this cleanup, code that belongs to the VideModeSettings
class is moved there. Some parameters are also renamed to be more
in line with typical naming conventions.
2021-11-03 16:02:46 +00:00
Laurent Montel 1118413c63 Remove duplicate include from .h/.cpp 2021-11-02 13:20:10 +01:00
Heiko Becker cf80ab492d GIT_SILENT Update Appstream for new release
(cherry picked from commit 3973e37b46)
2021-10-31 11:13:55 +01:00
David Murray 769d147026 Add support for recentlyused: kio to view properties.
Add "recentlyused" to the URL schemes recognised by ViewProperties as
needing special handling.  User-set view properties for the
recentlyused: kio are then saved under view_properties/recentlyused in
dolphin's app data directory.

(Previously, the recentlyused: kio was treated, by default, as if it was
a remote location for the purposes of view properties.  Since it
displays somewhat specialised results (files/directories from various
locations), users might find it useful to set particular view properties
and have them remembered.)
2021-10-30 16:39:06 +01:00
l10n daemon script c1200b3ddb GIT_SILENT made messages (after extraction) 2021-10-27 00:22:51 +00:00
Laurent Montel 3f76d92402 GIT_SILENT: add missing override keyword 2021-10-25 13:34:22 +02:00
Alexander Lohnau b497dc9cbd Save size of config dialog in state config
CCBUG: 397602
2021-10-20 16:07:11 +00:00
Alexander Lohnau 946b911a5d Utilize KXMLGUI API to store state config in separate file
CCBUG: 397602
2021-10-20 16:07:11 +00:00
Blaster goo 73082d2e42 Currently, when changing Version Control settings in Configure -> Context Menu, it
tells you to restart to apply those settings. This commit changes that by asking you
if you would like to restart now or later.

FEATURE: 441192
FIXED-IN: 21.12
2021-10-11 17:41:42 +00:00
Alexander Lohnau 2f5e4cb029
Install KCMs in dolphin/kcms namespace
This will allow consumers to load the plugin from this namespace
without KServiceTypeTrader being involved.
2021-10-09 14:14:27 +02:00
l10n daemon script 1937681d50 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"
2021-10-09 01:19:17 +00:00