Commit graph

5038 commits

Author SHA1 Message Date
l10n daemon script 92cd757733 GIT_SILENT made messages (after extraction) 2017-02-03 03:56:59 +01:00
arnav dhamija 36bd947233 Added a comment 2017-02-02 21:48:58 +05:30
arnav dhamija 41156288b2 Added a comment 2017-02-02 21:48:51 +05:30
arnav dhamija 8f28ceaad1 More happy with this patch 2017-02-02 21:46:54 +05:30
Kai Uwe Broulik c7a2e55df9 Merge branch 'Applications/16.12' 2017-01-31 20:52:28 +01:00
Kai Uwe Broulik e582b13f84 Hide progress info for rename jobs in rename dialog
When mass-renaming files, you could end up with a a gazillion notifications of a finished move job.
This fixes this. Ideally we would have one job which had the rename jobs as subjobs to still get
progress info for the overall task.

Differential Revision: https://phabricator.kde.org/D4372
2017-01-31 20:50:47 +01:00
arnav dhamija e8a4868943 Made more changes 2017-01-29 23:31:43 +05:30
arnav dhamija 68cda76aa8 Time to get back to business 2017-01-29 22:00:08 +05:30
Elvis Angelaccio a874e52b15 Merge branch 'Applications/16.12' 2017-01-21 23:43:09 +01:00
Elvis Angelaccio c1d9becda2 informationpanel: don't change color of scrollarea's viewport
This code was added a long time ago in b1c9b5126d, but the commit
message doesn't explain why. If we remove it nothing seems to change and
we fix the ugly background on the scrollbar when Breeze draws a frame
around dockable panels.

BUG: 366203
FIXED-IN: 16.12.2
REVIEW: 129861
2017-01-21 23:38:16 +01:00
Albert Astals Cid a67dab505a Merge remote-tracking branch 'origin/Applications/16.12' 2017-01-21 01:38:26 +01:00
Marc André Wittorf 2e8e30026a Fix missing audio duration in details view
Enabling the 'duration' column in a folder with audio files did only show empty information. Properly initializing the QTime object fixes this.

 Testing Done

    Find a folder with audio files
    Make sure that Baloo has indexed this folder
    Open this folder in Dolphin, detail view, enable the Audio/Duration column
    Unpatched Dolphin does not display audio duration, patched Dolphin does

Tested on Gentoo x86_64 with Qt 5.5.1, KF 5.21.0 and Arch x86_64 with Qt 5.6.0 and KF 5.21.0.

REVIEW: 127799
2017-01-21 01:37:35 +01:00
Gregor Mi 728e6712b8 DolphinSearchBox: Add a "More search tools..." menu button
Additionally, moves the "More/Fewer options" button from right to left to reduce the mouse travelling distance when the dolphin is maximized on a large screen (see screenshots)

The current location url will be passed to the search tool to set the initial search root directory.

REVIEW: 123883
2017-01-21 00:07:49 +01:00
Don Nguyen 0aed243beb Change "Date" to "Modified" and allow access to new "Accessed" time field
This is merge of #128964 and #128942.  This will impelement changing the "Date" field to "Modified" and allow a new "Accessed" time field to be available.  This also includes changes to update configuration files.

REVIEW: 129077
2017-01-21 00:04:38 +01:00
Don Nguyen d8ffea2476 Dolphin: directory loading progress
Everything is already set up to show the directory loading progress in the status bar, but the signal KFileItemModel::directoryLoadingProgress is never emmited anywhere.  I connected it to KFileItemModelDirLister::percent.

This was difficult to test because I had a hard time finding a directory that didn't load almost immediately.  I was able to verify the fix by listing a remote directory of 20,000 files (see screenshot)

REVIEW: 129619
2017-01-21 00:00:34 +01:00
Elvis Angelaccio 97b5435b6b Remove extra semicolon
GIT_SILENT
2017-01-18 23:49:41 +01:00
Elvis Angelaccio 1be2704214 Port away from deprecated KIO::Job::ui()
It's equivalent to KJob::uiDelegate() from kcoreaddons.
2017-01-18 23:45:39 +01:00
Kai Uwe Broulik 215bed085b In doubt use URL scheme for place
If we neither have a filename nor a host, we might be in a foo:/ URL, use the scheme then.

Differential Revision: https://phabricator.kde.org/D3935
2017-01-16 15:45:09 +01:00
John Salatas 63a591f32a Show full path in title bar
BUG: 229810

Differential Revision: https://phabricator.kde.org/D4078
2017-01-14 04:26:14 -08:00
Elvis Angelaccio 97415005de Merge branch 'Applications/16.12' 2017-01-14 13:00:33 +01:00
Elvis Angelaccio 85121a8115 Don't overwrite custom icons for the show_hidden_files action
BUG: 374508
FIXED-IN: 16.12.2
REVIEW: 129789
2017-01-14 12:52:58 +01:00
l10n daemon script c1eeb0e115 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"
2017-01-13 05:50:46 +01:00
l10n daemon script 82c944f63f GIT_SILENT made messages (after extraction) 2017-01-13 03:38:21 +01:00
Kai Uwe Broulik 0cad00c39a Add document title to additional information
Allows showing the document title of e.g. a PDF alongside the file name

BUG: 321356

Differential Revision: https://phabricator.kde.org/D3972
2017-01-12 14:23:12 +01:00
Montel Laurent 726515cfd4 Add missing Q_DECL_OVERRIDE 2017-01-03 13:18:07 +01:00
Ilya Bizyaev 962f6d7160 Fix 2 container-anti-pattern clazy warnings
REVIEW: 129752
2017-01-03 11:28:20 +01:00
Ilya Bizyaev 67c007889e Add missing Q_OBJECT macros
REVIEW: 129738
2017-01-03 11:24:13 +01:00
Kai Uwe Broulik 5107523249 Merge branch 'Applications/16.12' 2017-01-03 09:49:02 +01:00
Kai Uwe Broulik 996f8520e7 Explicitly pass iconNameForUrl when creating new places entry
Once KIO::iconNameForUrl returns special icons for standard paths (e.g. Video folder)
this will ensure when adding such a folder to places it will automatically get the proper icon.

Since KIO already depends on KBookmarks it can't depend the other way round, otherwise
this would have been fixed in KBookmarks directly.

Differential Revision: https://phabricator.kde.org/D3896
2017-01-03 09:46:43 +01:00
Kai Uwe Broulik 2a7090728b [DolphinView] Update view palette on palette change
Everything was handling palette change already but for the visual distinction between
active and non-active view (in case of split view), a custom palette was set which was
then never updated. This could be seen by the label text color changing but not the view background.

Differential Revision: https://phabricator.kde.org/D3909
2017-01-03 09:45:33 +01:00
Elvis Angelaccio 331c8bc89e Merge branch 'Applications/16.12' 2017-01-02 14:57:57 +01:00
Elvis Angelaccio 24ed38d77f Properly disable create_dir action in Trash
`isFolderWritable` is set in DolphinView::updateWritableState() according to
KFileItemListProperties::supportsWriting().
However, `writing=true` does not imply `makedir=true`,
in an ioslave's .protocol file. An example is the trash protocol.

So we need to enable the `create_dir` action only if the protocol is
actually able to create folders.

CCBUG: 332463
REVIEW: 129712
2017-01-02 14:54:38 +01:00
Anthony Fieroni c456c5d528 [DolphinSearchBox] Stop search timer on hide
REVIEW: 129705

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-01-01 21:47:10 +02:00
Martin T. H. Sandsmark 6af0dad2ee Fix updating of new item menu when changing tabs
Correctly set the active status of views when changing tabs.

Before: Right click in home folder, see create new enabled, open tab, go
to /usr, right click and see it is disabled, switch back to first tab
and right click, and it is still disabled.

After: It is enabled and disabled as appropriate when switching tab.

REVIEW: 129664
2016-12-28 13:49:37 +01:00
l10n daemon script ae935d36b1 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"
2016-12-20 12:38:21 +01:00
l10n daemon script d690b0719f GIT_SILENT made messages (after extraction) 2016-12-20 08:11:02 +01:00
Jonathan Marten 16db90c793 Dolphin Part: Update the paste action at the end of the listing
Fixes a problem with the paste action not being enabled, only seen in
Konqueror.

BUG:369523
REVIEW:129448
2016-12-06 06:59:49 +00:00
Elvis Angelaccio abb7799f7e Fix viewpropertiestest when GlobalViewProps is true
The test was not saving its changes to the global settings, so it was
passing on the CI only because the default value of GlobalViewProps is
already false. If GlobalViewProps was set to true instead, testAutoSave()
would fail because save() was not called and GlobalViewProps was not
2016-12-03 18:04:24 +01:00
Spencer Brown 73a6bf4e10 Fix 5 clazy warnings
This bumps the minimum Qt version to 5.5 (because of Q_ENUM usage).

REVIEW: 129604
2016-12-03 15:58:39 +01:00
R.J.V. Bertin b6e76f006d Add application icon for Mac and MS Windows.
Uses the Oxygen theme because it fits in better with prevailent icons
on those platforms.
2016-11-22 18:15:42 +01:00
R.J.V. Bertin ded92cc32a Use the current window icon in QIcon::fromTheme()
This prevents removing the application icon when icon lookup fails, on
Mac or MS Windows.
2016-11-22 17:55:34 +01:00
Don Nguyen 88805f7fad Call columnWidthChanged with actual previous width
REVIEW: 129334
2016-11-21 17:41:01 +01:00
Elvis Angelaccio 90beb4a5e3 Fix slow scrolling in dock panels
Commit f688bcd1f1 fixed slow scrolling with xf86-input-libinput on DolphinView.

However the commit also exposed a bug in the Dolphin scrolling
algorithm, which was previously hidden. This resulted in slow
scrolling in dock panels (Places and Folders), with both
xf86-input-evdev and xf86-input-libinput drivers, as well as libinput on
Wayland.

KItemListContainer::updateScrollOffsetScrollBar() relied on the view's
itemSize() method to compute the scrollbar's singleStep, but this QSize
was invalid for the dock panels' views.

We use a new itemSizeHint() method instead, which is always valid and
also adapts to the current icon size set in the view.

BUG: 365968
FIXED-IN: 16.12.0
REVIEW: 129409
2016-11-20 12:59:51 +01:00
arnav dhamija fa9cc1333a This seems to work. Though it could be better 2016-11-03 09:35:15 +05:30
arnav dhamija e7f6a1010a Changed default arg for the setSplitViewEnabled 2016-11-02 21:49:11 +05:30
Kai Uwe Broulik bffb1c4d60 Merge branch 'Applications/16.08' 2016-10-28 13:42:28 +02:00
Kai Uwe Broulik 95e1505c9f [Places Item Edit Dialog] Fix accepting dialog with Return
By setting a parent for the QDialogButtonBox we let QDialog handle everything by itself.
Also, store the dialog button box as a member rather than just the OK button.

This removes the need to set the OK button as default manually (which didn't work anyway)
and fixes pressing Return while the input is focused erroneously opening the folder browser
rather than accepting the dialog.

REVIEW: 129213
2016-10-28 13:40:50 +02:00
Safa AlFulaij 57a19efe93 The tab navigation shortcut workaround for RTL layouts is not needed anymore, as Qt supports that by default.
Before this, pressing Ctrl+Tab makes the previous tab (in RTL layout) the
activated one, and vice versa.

REVIEW: 128853
2016-10-12 14:31:35 +03:00
l10n daemon script 8828e686e9 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"
2016-10-10 12:24:39 +00:00
l10n daemon script 82cfc125f4 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"
2016-10-10 09:41:54 +00:00
Elvis Angelaccio 0e5e43aa9d Hide message widgets only when reloading the view
Otherwise an error message might be hidden before it's even shown.

BUG: 357651
FIXED-IN: 16.08.2
REVIEW: 129061
2016-10-04 17:30:51 +02:00
David Faure 0309bb1818 Pass current dir explicitly to QUrl::fromUserInput
It works with QString() but that's a bug, I didn't expect it to
work with my fromUserInput code and wrote otherwise in its documentation...
2016-10-03 01:05:42 +02:00
David Faure f54174f9f6 Popupmenu: use KIO 5.27's new addPluginActionsTo method
REVIEW: 129085
2016-10-02 22:28:03 +02:00
David Faure 345e3e7a82 Follow changes in konqpopupmenu: no longer back/forward/up in part's contextmenu. 2016-09-28 16:44:22 +02:00
arnav dhamija ee1231541a Fixed async conditions 2016-09-27 13:53:53 +05:30
arnav dhamija 3e32ee5e8c need to fix async conditions 2016-09-27 10:55:35 +05:30
arnav dhamija a097a1277a Changed shortcut, but need to fix async conditions 2016-09-27 10:37:08 +05:30
arnav dhamija 45d90a61f8 Found an icon for the button 2016-09-27 10:11:44 +05:30
arnav dhamija 2704b3693f Added the GUI button for quick stashing 2016-09-26 22:25:42 +05:30
arnav dhamija 1710304e9b Used KUrlMimeData::setUrls for kfileitemmodel's createMimeData for implementing the upcoming stash:/ ioslave 2016-09-25 19:46:22 +05:30
Elvis Angelaccio 478de35175 Merge branch 'Applications/16.08'
* Applications/16.08:
  Properly check Shift toggling in DolphinRemoveAction
2016-09-21 18:26:28 +02:00
Elvis Angelaccio 3775ef19ea Properly check Shift toggling in DolphinRemoveAction
Documentation of QGuiApplication::keyboardModifiers() says that "It should
be noted this may not reflect the actual keys held on the input device at
the time of calling but rather the modifiers as last reported in one of
the above events".

Since this method is called in DolphinContextMenu's keyPressEvent()
and keyReleaseEvent(), the first time that keyboardModifiers() is
called it doesn't report that shift has been pressed.

Replacing this method with queryKeyboardModifiers() does the job
because the latter doesn't care about the event queue.

BUG: 354301
FIXED-IN: 16.08.2
REVIEW: 128972
2016-09-21 18:13:29 +02:00
Elvis Angelaccio ca53974181 Add Donate standard action to control menu
REVIEW: 128946
2016-09-20 11:24:15 +02:00
Elvis Angelaccio 87ddbf770e Merge branch 'Applications/16.08'
* Applications/16.08:
  Don't load twice kfileitemaction plugins with json metadata
  Fix logic for loading kfileitemaction plugins
2016-09-10 22:01:09 +02:00
Elvis Angelaccio e93e6d4cc5 Don't load twice kfileitemaction plugins with json metadata 2016-09-10 21:59:16 +02:00
Elvis Angelaccio abaf20f114 Fix logic for loading kfileitemaction plugins
Since dolphin is now loading also plugins with json metadata, it is
wrong to return here, as those plugins could be missed.
2016-09-10 21:55:32 +02:00
Martin T. H. Sandsmark b706108206 Use tab for switching active split
REVIEW: 128564
REVIEW: 110970
BUGS: 171743
2016-09-04 14:12:53 +02:00
Elvis Angelaccio 5d684bea8b Merge branch 'Applications/16.08' 2016-08-23 18:12:20 +02:00
Elvis Angelaccio 809ba74695 Filter json-only KFileItemAction plugins by mimetype
Commit d48b733 introduced support for kfileitemaction plugins with json
metadata, but forgot to filter them by the commonMimeType (like
KMimeTypeTrader::query() does with old-style plugins).

So we need to load a plugin only when commonMimeType is equal to (or child of) one
of the mimetypes supported by the plugin.
2016-08-23 18:06:40 +02:00
l10n daemon script 438ede27dc 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"
2016-08-19 12:04:22 +00:00
l10n daemon script 50e366431d 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"
2016-08-19 09:28:24 +00:00
Martin T. H. Sandsmark 676cdcbbdb Fix some low-hanging warning fruits 2016-08-06 13:03:48 +02:00
Martin T. H. Sandsmark 8d61c9c7b6 Fix scrolling on hidpi screens
Scrolling with libinput was unbearably slow.

QScrollBar is much better at scrolling than us, so let it handle it.

REVIEW: 128432
BUG: 357618
2016-07-16 19:01:53 +02:00
Martin T. H. Sandsmark f688bcd1f1 Fix scrolling on hidpi screens
Scrolling with libinput was unbearably slow.

QScrollBar is much better at scrolling than us, so let it handle it.

REVIEW: 128432
BUG: 357618
2016-07-16 18:47:02 +02:00
Christoph Feck 4fad4405a7 Give FileMetaDataConfigurationDialog a parent
REVIEW: 128439
2016-07-14 17:19:21 +02:00
Kai Uwe Broulik c2c075011c Merge branch 'Applications/16.04' 2016-07-01 11:37:01 +02:00
Kai Uwe Broulik 6bda60f1dd [DBusInterface] Use %U instead of %u to indicate multiple URLs are supported
Otherwise KRun opens a separate instance for every URL passed although Dolphin
already has logic to open different folders in tabs if neccessary.

REVIEW: 128306
2016-07-01 11:36:10 +02:00
l10n daemon script f92da4f341 SVN_SILENT made messages (after extraction) 2016-06-28 08:18:56 +00:00
David Faure e615bfaed4 add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + fix compilation
This fixes some URLs built from local paths without scheme.
2016-06-25 16:40:18 +02:00
Elvis Angelaccio 6bb62f17b5 Look for kfileitemaction plugins in the expected subfolder
For a rationale, see https://git.reviewboard.kde.org/r/128225/
2016-06-18 17:47:07 +02:00
David Faure f2772c4fe6 Fix DnD onto desktop:/ app desktop file.
We need to resolve from desktop:/ to file:/ so that DropJob
can handle application .desktop files.

CCBUG: 363991
2016-06-16 15:34:44 +02:00
l10n daemon script 0cbc3d195b 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"
2016-06-10 09:41:49 +00:00
Elvis Angelaccio d48b733492 Load KFileItemAction plugins with json metadata
REVIEW: 128088
2016-06-08 15:30:52 +02:00
l10n daemon script bf8a3a3a03 SVN_SILENT made messages (after extraction) 2016-06-05 10:48:01 +00:00
l10n daemon script a11d551c2b SVN_SILENT made messages (after extraction) 2016-06-05 07:18:28 +00:00
l10n daemon script f8230d65e3 SVN_SILENT made messages (after extraction) 2016-06-04 11:03:54 +00:00
l10n daemon script d8fc408611 SVN_SILENT made messages (after extraction) 2016-06-04 07:22:48 +00:00
l10n daemon script fe6a7ac9f8 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"
2016-05-29 12:20:08 +00:00
l10n daemon script 82af09127d 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"
2016-05-29 09:27:44 +00:00
David Edmundson 25cc15a5a2 Port all instances of Kauthorized action/shell_command to shell_command
The KAuthorized key to prevent shell access according the documentation
is simply "shell_action" not "action/shellAction" so should use
authorize not authorizeKAction

This appears to have come about as part of a porting bug when going from
KApplication::authorize to KAuthorized in kdelibs3 to kdelibs4.

To currently block shell access a sysadmin currently needs to
have both keys set already, so we can be confident it won't have any
actual compatibility problems.
2016-05-26 13:51:35 +01:00
Martin T. H. Sandsmark bed16191b5 Fix crash when closing split view with ownCloud plugin loaded
KPluginLoader::instantiatePlugins() wraps QPluginLoader::instace(),
which doesn't return a new object for each call, so if we set the
KFileItemModelRolesUpdater instance as parent to the plugin the shared
instance will be deleted leading to crashes when other instances of
KFileItemModelRolesUpdater tries to use their plugin objects.

To fix this, set the QApplication as a parent.

BUG: 357479

REVIEW: 127930
2016-05-21 18:16:41 +02:00
Martin T. H. Sandsmark b1471bbd09 Fix crash when closing split view with ownCloud plugin loaded
KPluginLoader::instantiatePlugins() wraps QPluginLoader::instace(),
which doesn't return a new object for each call, so if we set the
KFileItemModelRolesUpdater instance as parent to the plugin the shared
instance will be deleted leading to crashes when other instances of
KFileItemModelRolesUpdater tries to use their plugin objects.

To fix this, set the QApplication as a parent.

BUG: 357479

REVIEW: 127930
2016-05-21 18:11:46 +02:00
David Edmundson b7ad5fb99d Merge branch 'Applications/16.04' 2016-05-18 10:13:16 +01:00
David Edmundson 3b95644fa1 Don't allow opening the terminal if shell_access Kiosk mode is set
DolphinPart already did this. Dolphin itself didn't have this feature.

REVIEW: 127951
2016-05-18 10:11:36 +01:00
Andre Woebbeking 62534f260f Don't use old (not existing) names in the documentation. 2016-05-16 19:06:32 +02:00
Marco Martin 4453d62f8b use selected icon state for selected sidebar item
Since now the breeze icons can be recolored by kiconloader
with svg stylesheets, use this feature to recolor the
currently selected icon in the sidebar and in the
details view (not the icon view)
look wouldn't change if used with icon themes that
don't support this feature
This makes it look more in line with the breeze style

REVIEW:127877
2016-05-13 11:48:30 +02:00
Frederik Schwarzer 1649a0f890 Change wording of Directory to Folder. 2016-05-05 13:43:02 +02:00
l10n daemon script bef1ceb4f5 SVN_SILENT made messages (after extraction) 2016-04-27 10:40:01 +00:00
l10n daemon script 28f3b29695 SVN_SILENT made messages (after extraction) 2016-04-27 07:15:37 +00:00
Wolfgang Bauer 16e3d669de Merge branch 'Applications/16.04' 2016-04-26 16:17:59 +02:00