Commit graph

194 commits

Author SHA1 Message Date
Alexander Lohnau
a24327cd50 Compile without foreach 2020-10-23 18:23:06 +00:00
Jonathan Marten
b02046c548 Select/Unselect dialogue: Retain a history of entries made there
It's a very useful facilitity, and having a history of entries and being
able to recall earlier ones makes it even more useful for repetitive
operations.
2020-09-23 11:07:29 +00:00
Elvis Angelaccio
954e8c4790 Output of licensedigger + manual cleanup afterwards.
Unfortunately licensedigger does not strip the trailing * characters.
While at it, use a common style for all source files.
2020-08-25 17:07:38 +00:00
Ahmad Samir
e3c03e466e Port QRegExp to QRegularExpression
Summary:
Port QRegExp::exactMatch() with QRegularExpression::anchoredPattern().
Port QRegExp::Wildcard with QRegularExpression::wildcardToRegularExpression().
Note that QRegularExpression::wildcardToRegularExpression() returns an anchored
pattern.

Test Plan:
Using the filter bar in dolphin works as before.

All unit tests pass, except:
- kfileitemmodeltest (which is unrelated AFAICS); it fails on master too
- placesitemmodeltest, which fails on master too

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26215
2020-05-06 11:37:38 +02:00
David Faure
ec2c69726a DolphinPart: port dolphin's last use of KRun::run to CommandLauncherJob.
Summary:
I chose CommandLauncherJob rather than ApplicationLauncherJob
because that would require either looking up org.kde.kfind.desktop
(with a risk of failure) or duplicating the icon name...

Test Plan:
commented out the if() block of the slot, to make sure we end
up launching kfind with this code. Then konqueror /, and Ctrl+F.

Reviewers: broulik

Reviewed By: broulik

Differential Revision: https://phabricator.kde.org/D28810
2020-04-18 13:07:08 +02:00
Piotr Henryk Dabrowski
6cb4d81a02 Use KParts::ReadOnlyPart::localFilePath() in DolphinPart::slotOpenTerminal()
Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26140
2019-12-21 12:28:06 -07:00
Laurent Montel
31dd81bb0c Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
Piotr Henryk Dabrowski
537dc7864a [Dolphin] Open Preferred Search Tool action
Summary:
Added "Open Preferred Search Tool" action to Tools menu.

It runs preferred (topmost) external search tool as configured in the "More Search Tools" menu.

By default Ctrl+Shift+F shortcut is assigned to this action.

FEATURE: 384798
FIXED-IN: 20.03.80

{F7134238}
{F7134240}
{F7134242}

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: pkloc, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D22594
2019-11-17 18:15:26 +01:00
Noah Davis
0c66610260 Change terminal panel icon to dialog-scripts
Summary: The old icon was a color icon, which does not match the style of other toolbar/menu buttons

Test Plan: {F7321334, size=full}{F7321319}

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23740
2019-09-05 11:55:43 -04:00
Elvis Angelaccio
9d11e5d4b4 Get rid of ugly static_cast usages in connect() calls 2019-05-05 17:53:29 +02:00
Elvis Angelaccio
642a427d03 [DolphinViewActionHandler] Rename createDirectory signal
Signals should be named after an event that happened.
2018-10-24 22:49:01 +02:00
Roman Inflianskas
ec12391a1b Convert hard coded shortcuts to standard keys
Test Plan: Check all changed shortcuts on all platforms.

Reviewers: #dolphin, rizzitello, elvisangelaccio

Reviewed By: #dolphin, rizzitello, elvisangelaccio

Subscribers: anthonyfieroni, ngraham, elvisangelaccio, rizzitello, #dolphin

Differential Revision: https://phabricator.kde.org/D11048
2018-04-13 21:33:18 +03:00
Roman Inflianskas
48b58f830a Remove unused #include
Summary: I used CLion inspection to hunt all unused #include

Reviewers: #dolphin, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: bcooksley, markg, elvisangelaccio, #dolphin

Differential Revision: https://phabricator.kde.org/D10985
2018-03-04 21:00:47 +03:00
Roman Inflianskas
32bd8efc7f Modernize the syntax of shortcuts
Reviewers: #dolphin, markg

Reviewed By: markg

Subscribers: markg, elvisangelaccio, #dolphin

Differential Revision: https://phabricator.kde.org/D10986
2018-03-03 16:44:29 +03:00
Elvis Angelaccio
6cf74d2fdd Don't show 'Open Terminal' on Windows
We already disable the TerminalPanel on Windows, we should do the same
with the 'Open Terminal' action for consistency.
2018-01-21 12:15:07 +01:00
Kevin Funk
a6db5029ac Modernize: Use nullptr everywhere 2017-11-21 10:53:12 +01:00
Elvis Angelaccio
2fd85facf8 Fix DolphinRemoveAction Shift toggling on Wayland
QGuiApplication::queryKeyboardModifiers() does not work on Wayland [1].
We don't need it in the first place, since we already know (thanks to
the key events) whether Shift has been pressed or released.
So we can just pass this information to DolphinRemoveAction::update().

BUG: 354301

[1]: https://bugreports.qt.io/browse/QTBUG-62786

Differential Revision: https://phabricator.kde.org/D7519
2017-09-07 21:31:42 +02:00
Elvis Angelaccio
5481709016 Port to KStandardAction::RenameFile
It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the F2 shortcut.

Differential Revision: https://phabricator.kde.org/D6777
2017-08-09 22:59:38 +02:00
Elvis Angelaccio
4b5ea05b67 Port to KStandardAction::MoveToTrash
It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the Del shortcut.

Test Plan:
- Change shortcut in System Settings -> Shortcuts -> Standard Shortcuts
- Make sure the new shortcut is used by dolphin.

Differential Revision: https://phabricator.kde.org/D6778
2017-07-27 16:15:03 +02:00
Elvis Angelaccio
aa771da32d Add missing emit keywords
GIT_SILENT
2017-07-13 17:11:33 +02:00
Elvis Angelaccio
68bb0ec22a Port to KStandardAction::DeleteFile
Summary:
It was introduced in kconfig 5.25 and it properly handles the shift+del
shortcut (together with kxmlgui >= 5.30). This allows us to drop the
custom delete shortcut as well as the shift+del workaround in
DolphinMainWindow.

Test Plan: Shift+Del still deletes files, without the 'ambiguous shortcut' warning dialog.

Reviewers: emmanuelp

Differential Revision: https://phabricator.kde.org/D5010
2017-03-13 19:40:07 +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
David Faure
345e3e7a82 Follow changes in konqpopupmenu: no longer back/forward/up in part's contextmenu. 2016-09-28 16:44:22 +02: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
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
Artur Puzio
5593c252e8 [CLAZY] Fixed all level 1 and level 2 warnings with small exceptions
REVIEW: 126771
2016-03-16 22:17:37 +01:00
Hrvoje Senjan
adeaab9745 Fix build in a kdelibs4-free enviroment
If one had kdelibs includes in /usr, they would get magically
picked up, so the build would succeed.
2015-02-27 20:17:59 +01:00
Emmanuel Pescosta
832e157ecd Port away from KDELibs4Support (we only use KDELibs4Support when baloo isn't present, because KFileMetaDataWidget is in KDELibs4Support)
Reviewed-By: Vishesh Handa
2015-02-26 18:10:42 +01:00
Hrvoje Senjan
f6b4f56216 Fix build on Jenkins (or with BUILD_TESTING=ON) 2015-02-24 17:07:55 +01:00
Emmanuel Pescosta
b2ad2c076c Fix the build of kde-baseapps temporarily (categorized logging in DolphinPart) 2015-02-24 15:52:45 +01:00
Emmanuel Pescosta
169cca55b9 Replace kDebug/kWarning by categorized logging (org.kde.dolphin) 2015-02-24 13:07:35 +01:00
David Faure
2a561317c6 Remove unused libkonq includes 2014-12-25 10:16:12 +01:00
Emmanuel Pescosta
8d7c1a6678 Port KInputDialog to QInputDialog 2014-12-14 19:05:53 +01:00
Emmanuel Pescosta
6202dbcf4a Remove K_EXPORT_PLUGIN 2014-12-14 18:58:57 +01:00
Emmanuel Pescosta
a07d63d419 port away from deprecated KFileItem(mode_t mode, mode_t permissions, const QUrl &url, bool delayedMimeTypes = false); 2014-12-14 17:46:58 +01:00
Emmanuel Pescosta
d0f0f1f2e2 make use of initializer lists 2014-11-10 08:45:38 +01:00
Lukáš Tinkl
037d5db85b Q_DECL_OVERRIDE 2014-11-03 23:52:18 +01:00
David Faure
3e14a97a0f Many cleanups in KonqOperations 2014-11-02 17:03:18 +01:00
Lukáš Tinkl
1b4572dac9 port Dolphin from KUrl to QUrl
REVIEW: 120688
2014-10-21 21:19:14 +02:00
David Faure
403f8e7133 Port from KonqOperations::editMimeType to KMimeTypeEditor::editMimeType (from kwidgetsaddons) 2014-10-21 00:38:39 +02:00
Lukáš Tinkl
d9d7926c49 port Konqueror from KUrl to QUrl
REVIEW: 120650
2014-10-21 00:28:58 +02:00
Montel Laurent
0a6257bce3 Fix includes 2014-10-18 15:00:17 +02:00
Montel Laurent
31a0c4fbd5 Fix includes 2014-10-18 14:42:41 +02:00
Montel Laurent
6f6b1bbb69 Clean includes + port to QMenu 2014-10-10 23:36:36 +02:00
Montel Laurent
5c1420fec9 kdelibs4support-- 2014-10-07 07:38:16 +02:00
Christoph Cullmann
e02e55fd71 simple setShortcuts => setDefaultShortcuts porting 2014-09-14 22:49:25 +02:00
Hrvoje Senjan
ee92e7a8b9 Adjust to changes in KAboutData 2014-05-14 18:04:38 +02:00
Alex Richardson
00ee5d6727 dolphin: convert the remaining code to Qt5 signal/slot syntax
Middle clicking on Forward/Backward/Home/etc. will no longer open a new
tab since the QAction triggered signal no longer tell us which mouse
button was pressed
2014-05-05 23:05:34 +02:00
Alex Richardson
693bf89f2e KParts::ReadOnlyPart::openUrl() changed from KUrl parameter to QUrl 2014-05-05 23:05:33 +02:00
Alex Richardson
2f045c6010 Allow compiling Dolphin with KF5
This does not work properly yet, there are probably quite a few bad signal/
slot connections due to KUrl -> QUrl. However dolphin starts without
crashing.

Accessibility is not ported since that changed quite a lot from Qt4 -> Qt5
and I have no idea how it is supposed to be used.

This is the first commit for review 117395
2014-05-05 23:05:13 +02:00