Commit graph

7035 commits

Author SHA1 Message Date
Kai Uwe Broulik 21cd9da8fd KItemListView: Use own palette rather than go hunt for the scene
Documentation for `QGraphicsWidget::palette` says:
> When a widget's palette changes, it resolves its entries against its
> parent widget, or if it doesn't have a parent widget, it resolves against the scene.

So I don't see why we would need to do that ourselves.

More importantly, though, it seems in Qt 6 the palette isn't updated in time,
so when changing color schemes, Dolphin picks the old color instead of the new one,
leading to illegible font when e.g. switching between Breeze Light and Dark.
2023-08-20 20:08:58 +00:00
Nicolas Fella b7e859827d Adapt to KNotifcations API change 2023-08-18 20:39:15 +00:00
Dimosthenis Krallis 489b56b68b Dolphin settings revamp
It includes a move of the settings in the Navigation and Startup sections to the Interface (formerly Behavior) section.
It also includes a new tab in the View (formerly View Mode) section, called General where some settings regarding Display style, Browsing and Miscellaneous settings
The Interface section has new tabs named Folders & Tabs and Status & Location bars respectively where most of the Startup and Navigation settings moved.

The `dolphin/kcms/kcm_dolphinnavigation` kcm is removed.
2023-08-18 07:07:48 +00:00
K. Cottonears 1165a1bc52 Set Maximum Tab Width for folders to Tab bar
There is no limit to the width of tabs with the tab bar of the main window. If the directory name is too long, tabs can take up a lot of space and can lead to inconsistent tab widths.

To alleviate this, set a maximum tab bar text width of 40 characters for each folder.

BUG: 420870
2023-08-17 07:22:49 +00:00
Heiko Becker 399309d36c GIT_SILENT Update Appstream for new release
(cherry picked from commit c08f661a2c)
2023-08-16 22:48:35 +02:00
Nicolas Fella 62ba2dd877 Adapt to kbookmarks API change 2023-08-14 23:18:19 +02:00
Méven Car aded2d716d Don't compute size for non-local urls
Hide progressInfo for listDir job on the non-recursize path.

BUG: 472912
2023-08-13 08:44:24 +00:00
Bart Ribbers 32a5f1c041 Fix musl build by using fts_* from external library
musl does not support fts. There is however a standalone package that
can be used, but it must be linked against. This commit adds a check
that makes sure to link to the external library if it is required.
2023-08-11 08:45:13 +00:00
Nicolas Fella 521f4937d5 Merge branch 'master' into kf6 2023-08-10 14:42:08 +02:00
Kai Uwe Broulik fc6fa9ba98 Set Notify flag on close running terminal app prompt
Ensures the warning sound is played.
2023-08-10 14:13:13 +02:00
Kai Uwe Broulik 23b7d64d9c Adjust to changes in KToolBarPopupAction
`menu()` will be null, instead use the provided `popupMenu()`.
Use `KToolBarPopupAction`'s mode enum instead of `QToolBar`'s
2023-08-03 13:26:43 +02:00
Amol Godbole 0dac2ea9e9 Add alternate shortcut for replaceLocation action
Alt + D is a common shortcut for replacing location. Add this as an alternate shortcut.

BUG: 468445
2023-08-03 11:00:51 +00:00
Amol Godbole c1b2605243 DolphinView: initialize m_controlWheelAccumulatedDelta
Ctrl + scroll wheel zoom was not working as designed after Dolphin is launched. Initialize m_controlWheelAccumulatedDelta in DolphinView's constructor. 

BUG: 469354
2023-08-03 10:44:20 +00:00
Steffen Hartleib 89dcef3af4 Enter selection mode by tap-and-holding an already selected item
Allow entering selection mode by touching an already selected item.

BUG: 462778
2023-08-01 10:10:28 +00:00
Amol Godbole 567f2858ac Fix incorrect file selection after file rename
forceUrlsSelection() needs to be called only when new name of renamed
file does not exist.

BUG: 417930
2023-08-01 09:59:57 +00:00
l10n daemon script 2f0369b333 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"
2023-07-28 01:43:52 +00:00
Steffen Hartleib 3123c086a7 Avoid unwanted drag and drop action
Use the screen position for a touch event to calculate the start drag distance.

BUG: 464594
2023-07-27 09:23:07 +00:00
Méven Car 2f36c05b9c Minor code improvement
NO_CHANGELOG
2023-07-27 09:50:28 +02:00
Méven Car a9123455de Update following removing of KIO::FileSystemFreeSpaceJob::result overload
NO_CHANGELOG
2023-07-26 10:13:50 +02:00
Nate Graham 6ae9e38a55 Add contribute link to AppStream metadata
Pointing to the readme file is reasonable enough.
2023-07-18 16:05:18 +03:00
Nicolas Fella c34b2f04fd Replace ServiceItemDelegate with standard Qt item delegate
We don't need a custom delegate here

Using the standard one from Qt also slightly improves margins
2023-07-09 00:21:42 +02:00
Nicolas Fella 31a8866ac0 Fix usage of Qt::CheckStateRole in preview model
Qt::CheckStateRole expects an enum, not a bool

Also set the flag that the item it user checkable, otherwise it can't be changed

BUG: 471999
2023-07-09 00:11:23 +02:00
Nicolas Fella 88ebcd42db Fix plugin query
QT_MAJOR_VERSION is undefined, the proper thing is QT_VERSION_MAJOR

This causes the plugin query to not find any plugins

Since we only target KF6 we might as well hardcode that
2023-07-08 22:42:32 +02:00
Nicolas Fella f60628cdfa Fix konsolepart lookup
The location changed for KF6
2023-07-07 11:53:39 +02:00
Nicolas Fella 49f9a28f4a Always enable panel dockwidget actions
Otherwise they are disabled when the docks are locked and panels can't be toggled

BUG: 471974
2023-07-05 23:14:43 +02:00
Nicolas Fella f510339f03 Merge branch 'master' into kf6 2023-07-05 22:44:40 +02:00
Friedrich W. H. Kossebau ed2d352c42 Add explicit moc includes to sources for moc-covered headers
* speeds up incremental builds as changes to a header will not always
  need the full mocs_compilation.cpp for all the target's headers rebuild,
  while having a moc file sourced into a source file only adds minor
  extra costs, due to small own code and the used headers usually
  already covered by the source file, being for the same class/struct
* seems to not slow down clean builds, due to empty mocs_compilation.cpp
  resulting in those quickly processed, while the minor extra cost of the
  sourced moc files does not outweigh that in summary.
  Measured times actually improved by some percent points.
  (ideally CMake would just skip empty mocs_compilation.cpp & its object
  file one day)
* enables compiler to see all methods of a class in same compilation unit
  to do some sanity checks
* potentially more inlining in general, due to more in the compilation unit
* allows to keep using more forward declarations in the header, as with the
  moc code being sourced into the cpp file there definitions can be ensured
  and often are already for the needs of the normal class methods
2023-07-05 07:59:18 +00:00
Tem PQD 4d930992c4 Use ellipsis everywhere instead of three dots
Better for screen readers etc.
2023-06-29 22:42:34 +00:00
Heiko Becker cf3a570afc GIT_SILENT Update Appstream for new release
(cherry picked from commit e3ad78194c)
2023-06-30 00:10:33 +02:00
Felix Ernst 0bf439833c Move focus from hiding selection mode bars to view
When a user exits selection mode for example by clicking the "Exit
Selection Mode" button, the bar is closed but the focus doesn't return
to the view which would be expected. This commit actively moves the
focus to the view in such a scenario.

BUG: 469621
2023-06-28 16:35:56 +00:00
Méven Car cd2e64154f Merge branch 'master' into kf6 2023-06-28 09:49:46 +02:00
Tem PQD b92bb43e9d Fix Refresh tooltip text and add Refresh whatsThis text
BUG: 469263
2023-06-26 19:32:00 +00:00
l10n daemon script 7458d21bb7 GIT_SILENT made messages (after extraction) 2023-06-25 00:55:37 +00:00
Volker Krause dcd5c994bb Use non-deprecated Phonon includes 2023-06-20 19:44:19 +02:00
l10n daemon script 2fb1fc1d5c GIT_SILENT made messages (after extraction) 2023-06-20 00:56:01 +00:00
Méven Car 7f3967cf38 Hide application/x-trash files following showHidenFiles
BUG: 3212
2023-06-17 07:09:50 +00:00
l10n daemon script 51fcd600a8 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"
2023-06-16 01:40:55 +00:00
Méven Car cf14a888ce Tabbar: duplicate tab when double clicking on it
BUG: 470388
2023-06-13 09:48:55 +00:00
Méven Car 3338c2834a Settings Add ViewModes > Content display
This does not move the settings location in files though.

baby step for https://invent.kde.org/system/dolphin/-/issues/36
2023-06-13 09:40:27 +00:00
Alexander Lohnau 3d0c946eef Adjust KCMs to no longer do cast manually
KCModule::widget returns the widget that should be a parent for widgets the KCM creates
2023-06-10 10:26:58 +02:00
Felix Ernst e5abe2c67b Update my eMail to the KDE-provided one
GIT_SILENT
NO_CHANGELOG
2023-06-04 18:09:42 +02:00
Heiko Becker 05e99b3dd1 GIT_SILENT Update Appstream for new release
(cherry picked from commit db3c01a34a)
2023-06-02 20:44:17 +02:00
Nicolas Fella 1c393f50d5 Only use KStartupInfo on X11 2023-05-31 12:43:57 +00:00
Méven Car c17e6c8d2b Expand or collapse all selected folders on Key Right/Left
CCBUG: 196772
2023-05-26 16:10:38 +00:00
Méven Car a1c5c5cf81 KDirectoryContentsCounter: show intermediate dir size counting results, improve stopping, improve data caching
Two user visible changes:
 * we can see the dir size changing as it is updated.
 * This makes the file counting a lot more reactive, when changing directories for instance.

`KDirectoryContentsCounterWorker::walkDir` is not recursive anymore.

The cache is now shared and only a single thread is used to count size recursively.
2023-05-26 15:10:09 +00:00
Méven Car ee8b71e556 Revert "Restrict attaching instances to those on the same activity or same virtual desktop"
This reverts commit b99f6f50ee.

BUG: 408919

Reintroduces:
CCBUG: 408919
2023-05-24 10:11:41 +00:00
Méven Car b01329bf36 Revert "global.cpp: Ensure qApp does not emit signal because of local QEventLoop"
This reverts commit dec80fb0f9.
2023-05-24 10:11:41 +00:00
Méven Car dec80fb0f9 global.cpp: Ensure qApp does not emit signal because of local QEventLoop
BUG: 469656
2023-05-19 15:31:42 +00:00
Jakob Petsovits b5b6762b15 Bring back the "Create New" menu in the menu bar
This commit is the result of a three-way diff that
combines my own initial patch with related changes from
Felix Ernst's MR !545 and further suggestions by Méven Car.

Fixes DolphinMainWindowTest::testNewFileMenuEnabled().
Tests are now passing again for my build.

"Create New" was broken by commit c64059bd which switched to the
new, non-deprecated KNewFileMenu constructor (kio commit 89bc6bad)
that doesn't add itself to the passed KActionCollection parameter.
After the switch, hamburger menu and context menu was still working
as intended but the menu bar was missing the "Create New" menu.

This commit adds the addAction("new_menu") call to the File menu
setup that would have previously been called by the deprecated
KNewFileMenu constructor. The corresponding test can now find
the QObject for the menu's named action again, verifying its
existence and enabled-ness like it did before.

The DolphinNewFileMenu constructor's unused actionCollection
parameter serves no use anymore except to confuse people.
We replace it with a single QAction* parameter, createDirAction,
which gets passed to setNewFolderShortcutAction().

2 out of 3 constructor call sites have access to this action,
while the remaining call site in dolphinmainwindow.cpp must wait
until after it has been initialized by DolphinViewActionHandler.
In this case, setNewFolderShortcutAction() is still called manually
at a later time.
2023-05-16 11:11:51 -04:00
Jakob Petsovits 1b0caf69a8 Remove deprecated, ifdef'd code for old KIO versions 2023-05-12 16:56:36 -04:00
Méven Car 629a5d44dd
Add a TODO KF6 to solve bug 464722
CCBUG: 464722
2023-05-10 16:41:30 +02:00
Méven Car ac1f8131f9 Fix a typo, take 2 2023-05-09 12:11:21 +02:00
Méven Car 2b877de270 Fix a typo 2023-05-09 11:20:34 +02:00
Heiko Becker c3fb0dc15b Fix build without KF5Activities 2023-05-09 08:49:28 +00:00
Méven Car 5887d1d852 Fix a bunch of Qt6/Kf6 warnings 2023-05-09 10:30:14 +02:00
Méven Car d6da4a903f Fix dolphinvcs_export.h export path 2023-05-09 10:11:54 +02:00
Méven Car d2092ed444 Fix for KUserFeedbackQt6 includes 2023-05-09 09:34:38 +02:00
Méven Car 468df35149 Fix for KUserFeedbackQt6 includes 2023-05-09 09:24:46 +02:00
Méven Car 0a581f97be Ensure good export of dolphinvcs headers 2023-05-09 09:24:19 +02:00
Méven Car 863ee3a87c Merge branch 'master' into kf6 2023-05-08 17:46:51 +02:00
Méven Car 69f6b9b78b Revert "partially Improve kuserfeedback import"
This reverts commit 047bf33d90.
2023-05-08 17:43:48 +02:00
Méven Car 047bf33d90 Improve kuserfeedback import 2023-05-08 16:23:15 +02:00
Méven Car 76e3eab6ea
Port to Qt6 2023-05-07 18:32:17 +02:00
Heiko Becker 26808a188c GIT_SILENT Update Appstream for new release
(cherry picked from commit 3fb0380fd4)
2023-05-06 10:10:17 +02:00
Méven Car 47e4c64e6a KFileItemModelRolesUpdater: test isSlow in startDirectorySizeCounting
NO_CHANGELOG
2023-04-29 10:47:40 +00:00
Méven Car 4e6939e1f5 Fix test regression in DolphinMainWindowTest::testGoActions 2023-04-25 16:14:29 +00:00
Felix Ernst 64ae87f402 Revert "Adapt autotest to new expected "Space" key behaviour"
This reverts commit df5cf6fe85.

The autotest was orginally changed to adapt to new behaviour when
the Space key is pressed. This change used to be implemented in
KItemListController which meant that the KItemListControllerTest
needed changing, but this is no longer the case.
Instead the new behaviour when the Space key is pressed is now
implemented further up the hierarchy, so the KItemListController
change could be reverted in
7b6a67e520 and as such we can also
revert this autotest change.
2023-04-25 15:19:09 +02:00
Eugene Popov 7b6a67e520 Fix activating the Selection Mode with a keyboard shortcut
If a spacebar is used as a keyboard shortcut to activate the Selection Mode, then allow this shortcut to be triggered only if the view has a keyboard focus.

BUG: 465489
2023-04-25 13:05:39 +00:00
Eugene Popov 215923b33f Add DolphinTabPage::inactiveViewContainer() 2023-04-23 09:33:09 +00:00
Eugene Popov 78a3cd3e4b Improve copying and moving items between panels
Currently, copying the selected items between panels is performed by the active panel, which is wrong, because the inactive panel cannot select the copied items after the operation is completed (as it happens when drag'n'dropping or copying using keyboard shortcuts).
2023-04-23 09:33:09 +00:00
Eugene Popov 6fd77a96b4 FilterBar: improve keyboard behavior and tab ordering
With this MR, when the filterbar has the keyboard focus:
- pressing the Tab key moves the keyboard focus to the view
- pressing the Down, PageDown, Up and PageUp keys moves the focus to the view and emulate pressing the same key in it (you can navigate directly from the filterbar)
2023-04-22 17:09:31 +00:00
Méven Car c9217337c7 TerminalPanel: rename currentWorkingDirectoryIsParentOf to currentWorkingDirectoryIsChildOf
NO_CHANGELOG
2023-04-22 09:33:01 +02:00
Méven Car a654b8dae6 TerminalPanel: better check if terminal needs to change its currentWorkingDirectory when unmounting
CCBUG: 467403
2023-04-21 15:32:58 +02:00
Méven Car 040e2afcfa DolphinView: allow selectUrls to be considered for selection in more cases
* when there is some selection already (some files were created previously)
 * when the model has not yet insert all the selectedUrls

Also
 * Rename DolphinView::slotCopyingDone to slotItemCreatedFromJob

BUG: 407161
2023-04-20 15:17:19 +00:00
Felix Ernst 49ea43e24f Reuse existing proxy style
Before this commit, a new QProxyStyle was created every time the
selection mode was enabled. The previously used one was
automatically deleted in the process because of the std::unique_ptr
re-assignment. This isn't really a problem in itself, but I
strongly assume that the sudden deletion of the old style shortly
before setting a new style might be the cause of the crash/bug
468548.

This commit simply re-uses the previously created proxy style which
doesn't seem to cause any behaviour change even when the
application style has been changed in the time since the proxy
style was created.

Another potential solution might be to simply use deleteLater() on
the old proxy style instead of letting std::unique_ptr delete the
old proxy style instantly while it is still in use. That seems more
involved than simply re-using the old style though.

BUG: 468548
FIXED-IN: 23.08
2023-04-20 14:42:04 +00:00
Méven Car b99f6f50ee Restrict attaching instances to those on the same activity or same virtual desktop
CCBUG: 408919
2023-04-20 08:50:40 +00:00
Heiko Becker 5f01edcfe7 GIT_SILENT Update Appstream for new release
(cherry picked from commit fb084ec1a1)
2023-04-12 18:00:19 +02:00
Nate Graham 70e20a310a Make "don't run me with sudo/kdesu" message informative
We tell users what not to do, but we don't tell then what to do instead.
At one point we told them to just use Dolphin normally and the polkit
integration would kick in, but that work ended up being reverted and
abandoned. Instead, tell them to use kio-admin, which exists as a
released product and will hopefully not get removed anytime soon.

CCBUG: 467948
2023-04-05 16:17:56 +00:00
Felix Ernst 95905ce761 Add test for openFiles()
The basic mainWindow methods openFiles(), openDirectories(),
isUrlOpen(), and isItemVisibleInAnyView() have some non-obvious
behaviours that shouldn't regress. We never want to open
directories that are already open. We only want to open new tabs
when the currently open ones don't have the file that should be
highlighted in view already. This should work even if view modes
that allow folder expansion are in play. It should also work when
the view area is split.
2023-04-03 15:34:32 +00:00
Méven Car e190977a90 PlacesPanel: clean some warnings
NO_CHANGELOG
2023-04-03 15:34:16 +02:00
Méven Car 9061b22a0d Context menu: allow to show copy to/move to inactive split view
Prevent copying/moving to same folder as origin when copying/moving to inactive split view

BUG: 356436
2023-04-02 07:22:07 +00:00
l10n daemon script 5149ede257 GIT_SILENT made messages (after extraction) 2023-03-27 00:51:23 +00:00
l10n daemon script 080572c67a 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"
2023-03-26 01:45:57 +00:00
l10n daemon script 09f25ee461 GIT_SILENT made messages (after extraction) 2023-03-26 00:50:38 +00:00
Oliver Beard 278380bf17 panels/information: Add option to not show information for hovered item
BUG: 364956
BUG: 453211
2023-03-25 10:01:52 +00:00
l10n daemon script 53eba0b14c 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"
2023-03-21 01:43:27 +00:00
Méven Car 9967a5cdee Prevent dragging on non-writable directories
KFileItemModel::supportsDroppin now returns the rootItem when -1 is passed and checks for write access.
2023-03-16 14:27:52 +00:00
Méven Car 6e5460697b Prevent a non-initialized value access
NO_CHANGELOG
2023-03-09 19:00:27 +01:00
l10n daemon script 7b2a09511d 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"
2023-03-06 01:43:29 +00:00
l10n daemon script aabacff070 GIT_SILENT made messages (after extraction) 2023-03-05 00:56:55 +00:00
Alexander Lohnau 50c889e24c Use separate KMoreTools library 2023-03-04 23:49:48 +00:00
Nicolas Fella c64059bd02 Port away from deprecated KNewFileMenu ctor 2023-03-04 23:49:48 +00:00
Dāvis Mosāns c2ef0392e9 Remove deprecated KServiceTypeTrader 2023-03-04 23:49:48 +00:00
Dāvis Mosāns d0fd5e3869 Remove deprecated ConfigurePreviewPluginDialog 2023-03-04 23:49:48 +00:00
Dāvis Mosāns b44b4806cb Port to KF6 KParts 2023-03-04 23:36:46 +00:00
Dāvis Mosāns c31d60e630 Port to KF6 KSelectAction 2023-03-04 23:11:01 +00:00
Dāvis Mosāns 05e003e41b Port to KF6 KWidgetItemDelegate 2023-03-04 21:01:18 +00:00
Dāvis Mosāns 6600dc9bdc Rename KF5 to KF6 2023-03-04 20:58:48 +00:00
Ismael Asensio ba60b6ada3 search: Prevent the search box from enlarging the view
By default, the search filters widget calculates its
`minimumSizeHint` as the sum of its components' minimum widths.

This minimum width hint will scale up the widgets hierarchy,
finally imposing a minimum width to the contents view, which
in certain conditions can take the space from the side panels.

Let's set a minimum width hint of 0, so it is the filters widget
which always adapts to the available view size instead.

BUG: 466796
FIXED-IN: 23.04
2023-03-04 10:30:41 +00:00
Alexander Lohnau f8a6aba490 Remove unneeded metadata from KCM json files
We only load them in Konqueror, there are only the name, icon and doc path used.
The ServiceTypes are only a leftover from before the json conversion

Task: https://phabricator.kde.org/T14730
2023-03-04 09:22:06 +01:00
l10n daemon script 6adbb73b99 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"
2023-03-02 02:25:05 +00:00
Méven Car 6f778005b5 Save a in-thread stat call each time the context menu is displayed 2023-02-25 11:26:25 +00:00
Heiko Becker 4cf831a54e GIT_SILENT Update Appstream for new release
(cherry picked from commit 7fa24be461)
2023-02-24 20:51:45 +01:00
Nate Graham 5a5a82a0c9 Apply 1 suggestion(s) to 1 file(s) 2023-02-23 14:44:20 +00:00
Méven Car 87fc5b4e70 Move split view settings about miscellaneous 2023-02-23 14:44:20 +00:00
Felix Ernst 543378a670 Apply suggestions 2023-02-23 14:44:20 +00:00
Méven Car 77c30bddd8 Settings: move split views options to their own group 2023-02-23 14:44:20 +00:00
Méven Car 7a682f5e9c Fix header index are colIndex and not roleIndex 2023-02-23 12:29:20 +01:00
Aleix Pol 6e7a5760b4 Fix typo in m_hoveredColumnHearderRoleIndex 2023-02-21 13:16:42 +01:00
Aleix Pol fc04c8186d Fix uninitialised value
Do not read m_hoveredColumnHearderRoleIndex before it has been
initialised.

.6  0x00007fe00632182c in QList<KFileItemModel::RoleInfo>::Node::t
(this=<optimized out>, this=<optimized out>) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:153
.7  QList<KFileItemModel::RoleInfo>::at (i=3080252, this=0x7ffdf2e9bba8)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:572
.8  DolphinView::eventFilter (this=0x5584bef25160,
watched=0x5584bef8a300, event=0x7ffdf2e9bd30) at
./src/views/dolphinview.cpp:978
.9  0x00007fe003ebbdda in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
.10 0x00007fe004b6c782 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
.11 0x00007fe004b75411 in QApplication::notify(QObject*, QEvent*) ()
from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
.12 0x00007fe003ebc07a in QCoreApplication::notifyInternal2(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
.13 0x00007fe004b72269 in QApplication::event(QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
.14 0x00007fe004b6c793 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
.15 0x00007fe003ebc07a in QCoreApplication::notifyInternal2(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
.16 0x00007fe003f14e0b in QTimerInfoList::activateTimers() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
.17 0x00007fe003f15754 in ?? () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
.18 0x00007fe001d20d3b in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
.19 0x00007fe001d756c8 in ?? () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
.20 0x00007fe001d1e3e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
.21 0x00007fe003f15ad8 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
.22 0x00007fe003eba99b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
.23 0x00007fe003ec2f34 in QCoreApplication::exec() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
.24 0x00005584bd2a9aad in main (argc=<optimized out>, argv=<optimized
out>) at ./src/main.cpp:249

BUG: 466110
2023-02-21 13:15:37 +01:00
Méven Car da7ccef488 DolphinView: Allow to have tootips on columns headers
Add events columnHovered/columnUnHovered to KItemListview and
KItemListHeaderWidget.
2023-02-18 16:01:44 +00:00
Alexander Lohnau 54f62d22b0 Allow empty metadata for KOverlayIconPlugin
We do not read the metadata anywhere, consequently we can allow empty metadata.
Consumers now don't have to provide a file and we do no spend time parsing the JSON.

Task: https://phabricator.kde.org/T14538
2023-02-15 09:36:31 +00:00
Yuri Chornoivan 6b00c8b911 Consistent naming in tooltips 2023-02-15 09:02:49 +02:00
Méven Car a34768747f Fix a disconnect warning
NO_CHANGELOG
2023-02-14 18:26:40 +01:00
Serg Podtynnyi b7fa85a33d Add new settings for permissions column format
Ability to configure column for the file/dir permissions in
Numeric(Octal)/Textual/Combined style and update field display style to be right-alighed.
Add toolips to column menu items
BUG: 227745
2023-02-14 16:40:33 +00:00
Méven Car bb686052c7
Revert "Remove deprecated ConfigurePreviewPluginDialog"
This reverts commit d8de1c37e5.
2023-02-14 17:03:43 +01:00
Méven Car 1c98a50d83
Revert "Remove deprecated KServiceTypeTrader"
This reverts commit 648c2db6e4.
2023-02-14 17:03:33 +01:00
Nicolas Fella 4fbc5302e7 Fix 'Show Target' for non-local URLs
Links are not always local files, e.g. 'remote:/zeroconf' links to 'zeroconf:/'

The current code fails there

Instead of using QFile API that does not work on non-local URLs use QUrl::resolved to resolve relative links

Furthermore, QFile::exists doesn't work for non-local URLs. Instead do a KIO stat to check whether the target exists
2023-02-14 14:54:29 +01:00
Méven Car ba930ddb36 Optimize Directory size counting
Two changes:
 * Prioritise size counting for visible path
 * stop the worker when switching dirs
2023-02-12 11:21:53 +00:00
l10n daemon script d185e21887 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"
2023-02-12 02:02:18 +00:00
l10n daemon script f885d2f1be GIT_SILENT made messages (after extraction) 2023-02-12 01:01:24 +00:00
Dāvis Mosāns 648c2db6e4 Remove deprecated KServiceTypeTrader 2023-02-10 09:44:23 +00:00
Dāvis Mosāns d8de1c37e5 Remove deprecated ConfigurePreviewPluginDialog 2023-02-10 09:44:23 +00:00
Friso Smit b168f9a98b Fix zooming for high resolution scroll wheels
BUG: 432671
2023-02-09 16:28:29 +00:00
Forest ix c57c5384fc Reveal the Backspace shortcut in the UI
Since the Back action already has two standard shortcuts, a third one appended
to the list will be invisible in the UI, which shows only the first two.  This
leaves users unable to reassign it.

We therefore make it the first shortcut in the list, so that the hidden third
entry will be the dedicated Back button, which users are far less likely to
want reassigned.

BUG: 371130
2023-02-09 11:17:26 +00:00
Andrew Gunnerson 34e0a5488e KFileItemModelRolesUpdater: Skip directory item count if it isSlow()
This makes the behavior of kernel cifs/nfs mounts the same as with kio's
smb://. It also helps reduce the chance of the UI hanging due to
opendir/readdir slowing down stat calls on the UI thread.

Signed-off-by: Andrew Gunnerson <accounts+kde@chiller3.com>
2023-02-09 09:18:35 +00:00
Alexander Volkov 24cc1483bc Avoid crash on start when help actions are restricted through the Kiosk system
This was first applied in 0ac57fbe90,
but then "reverted" in 3ccdcc2176 by
misunderstanding.
2023-02-09 09:09:21 +00:00
Serg Podtynnyi 36dfe5795f Selects next item in list after delete/trash actions
BUG: 419914
BUG: 181214
2023-02-06 10:47:49 +07:00
Serg Podtynnyi 38c34eeca3 Add clang-format and format code as in Frameworks 2023-02-05 12:45:38 +07:00
Serg Podtynnyi a9ac1f1252 Add Page count and Publisher columns
BUG: 374561
2023-02-04 22:14:46 +07:00
Davide Garberi f0d201dcf1 dolphinview: Fix right click broken on placeholderLabel
* This commit fixes the right click context menu not being shown
  whenever the click is made right on the placeholderLabel text

Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2023-02-01 10:20:09 +00:00
l10n daemon script 572f4d2e9a 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"
2023-01-30 02:05:00 +00:00
l10n daemon script 4a3ddf29f9 GIT_SILENT made messages (after extraction) 2023-01-30 01:00:43 +00:00
Heiko Becker 9eb780a288 GIT_SILENT Update Appstream for new release
(cherry picked from commit dd7a4fc0e8)
2023-01-29 23:39:25 +01:00
Bharadwaj Raju 3c48004086 Fix sudo message
We don't have KIO PolKit support yet
2023-01-29 10:46:12 +00:00
l10n daemon script e26438e3c2 GIT_SILENT made messages (after extraction) 2023-01-28 01:01:14 +00:00
Serg Podtynnyi 96323e049c Clear filter bar on clicking current folder in places
Reset the filter bar when user clicks on the current folder in places
list, also rename slot function to be more clear.

BUG: 259382
2023-01-25 18:37:55 +07:00
l10n daemon script 83964c2071 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"
2023-01-22 02:03:57 +00:00
l10n daemon script 579eadeb6d GIT_SILENT made messages (after extraction) 2023-01-22 01:00:52 +00:00
Oliver Beard 86d89c3bd1 Use both split view names in tab names
When the tab is a split view, use the name of both views rather than only the active view.
2023-01-19 22:33:10 +00:00
Willyanto Willyanto 0a0f0c76db Replace qswap with std::swap
Fixes obsolete function 'qSwap' called. It is recommended to use 'std::swap'
instead. (CWE-477)
2023-01-16 23:45:56 +07:00
Nicolas Fella 7df627a7d6 Add missing KCodecs link 2023-01-15 01:38:10 +01:00
Kai Uwe Broulik afba1fd4f3 Update split action when settings change
In case "closing split view closes active view" setting is changed
2023-01-12 17:50:21 +00:00
Felix Ernst df5cf6fe85 Adapt autotest to new expected "Space" key behaviour
The old expected behaviour was that pressing Space would select
the current item. We now trigger selection mode instead and don't
select. At some point in the future we might want to instead have
Space trigger a "QuickLook" feature for quick viewing of full
files. In any case, the old behaviour of having Space select is
no longer expected, but Ctrl+Space can still be used for this.

It might also make sense to have Space trigger the old selection
behaviour if both selection mode and "QuickLook" are disabled, but
that is very low priority and will cause more code complexity than
the non-default benefits are worth.
2023-01-11 16:11:36 +01:00
Felix Ernst 44c82a16b3 Make space shortcut for selection mode view-local instead of global
Before this commit, the "Space" keyboard shortcut was bound to
triggering selection mode by default. After this commit, pressing
"Space" will only trigger selection mode when the file view area
has keyboard focus.

Pros:
+ Other buttons in the UI can be triggered with Space once again
  just like it is expected from an accessibility point of view.
+ "Type-ahead" searching works once more when typing the space
  char for file names containing such a space char.

Cons:
- "Space" can no longer be used to add the currently underlined
  item to the selection. Instead "Ctrl+Space" needs to be used.
  (However, this is the current status anyway unless a user has
  manually unbound "Space" as a shortcut from Selection Mode.)
- The Selection Mode action will no longer show "Space" as its
  shortcut in menus.

Overall, I see solutions to all of these problems, but they seem
over-engineered for the issues they are trying to solve, so I
believe this somewhat small commit is the best solution for now.

BUG: 458282
BUG: 458281
CCBUG: 463048
FIXED-IN: 23.04
2023-01-11 15:49:20 +01:00
Fabian Vogt eab9205c31 Remove unnecessary method parameter
(cherry picked from commit ee919ea329)
2023-01-09 16:21:34 +01:00
Fabian Vogt 50b9913233 Fix size of directories if a subdir fails to open
If opening the directory fails, it returns -1 as size. Don't add that to the
parent's total size.

(cherry picked from commit a6490755ca)
2023-01-09 16:21:33 +01:00
Fabian Vogt a81b287e7a Don't recurse into symlinks when counting directory contents
Symlink contents should not be visited for the purpose of displaying sizes.
Not only is potentially misleading because the storage is actually used
elsewhere (the target location), it can be completely wrong as contents can
be visited multiple times, even recursively.

BUG: 434125
(cherry picked from commit 491068a440)
2023-01-09 16:21:31 +01:00
Felix Ernst eede574723 Fix potential nullptr de-reference
The `break` that is replaced by a `return` here would only break
out of the innermost while loop so the std::vector::end could still
become accessed after that. By returning here we completely exit
out of both nested loops and therefore don't access the
std::vector::end.
2023-01-08 15:07:16 +01:00
Albert Astals Cid 2b11166bb2 GIT_SILENT Update Appstream for new release
(cherry picked from commit 28f49e6b91)
2023-01-03 00:14:37 +01:00