]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
6 years agofind ruby gems & make coverage conditional on BUILD_COVERAGE
Harald Sitter [Mon, 18 Mar 2019 14:37:52 +0000 (15:37 +0100)]
find ruby gems & make coverage conditional on BUILD_COVERAGE

Summary:
new finding tech:
- find_gem function configures gem-specific FindFoo files and wraps around
  find_package
- FindFoo files look for ruby and then attempt to require the gem name
  i.e. it checks if the gem can be successfully loaded by the interpreter
- since this is based on find_package it may be influenced in all the
  regular ways (e.g. forced found or disabled from finding altogether
  via CMAKE_DISABLE_FIND_PACKAGE_$PKGNAME)

various notes for the future:
- technically this isn't 100% correct because the require name of a gem and
  the gem name may not be the same. e.g. the gem `docker-api` has the
  require name `docker`. for all currently used gems the names are however
  the same and so simply requiring the gem name is expected to work
- the implementation doesn't care about versions, again because we don't
  need it to
- test-unit is a bundled gem, some distributions (e.g. Arch) do split it
  out without making suitable dependency arrangements on a package level
  though

the tech is heavily inspired by Aleix Pol's tech for finding QML modules
as seen in extra-cmake-modules

Test Plan:
- ruby not found: none of the modules found
- test-unit not present: error
- simplecov not prseent: never errors
- having a module installed or not is reported in the cmake output

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19856

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Wed, 20 Mar 2019 16:48:26 +0000 (17:48 +0100)]
Merge branch 'Applications/19.04'

6 years agoFix rearranging items in places panel with hidden items
Tigran Gabrielyan [Wed, 20 Mar 2019 09:21:21 +0000 (10:21 +0100)]
Fix rearranging items in places panel with hidden items

Summary:
`m_sourceModel->movePlace` is called using index from the view model.
This becomes an issue when there are hidden places items.

This change calls `m_sourceModel->movePlace` using the corresponding mapped source index.

BUG: 399430
FIXED-IN: 19.04.0

Test Plan:
  # Create at least 4 Places items
  # Hide first item
  # Drag the now first visible item between second and third item

Actual: The item does not move
Expected: The first visible item should now be second visible item in the list

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19901

6 years agoMerge remote-tracking branch 'origin/Applications/19.04'
Christoph Feck [Mon, 18 Mar 2019 22:00:25 +0000 (23:00 +0100)]
Merge remote-tracking branch 'origin/Applications/19.04'

6 years agoBring back KActivities support
Elvis Angelaccio [Tue, 15 Jan 2019 17:47:27 +0000 (18:47 +0100)]
Bring back KActivities support

Summary: This code has been unused since the KF5 port.

Reviewers: #dolphin, #plasma

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18273

6 years agofix coverage generation when run through ctest
Harald Sitter [Mon, 18 Mar 2019 14:23:20 +0000 (15:23 +0100)]
fix coverage generation when run through ctest

path construction is a bit disappointing and doesn't actually work all that
well for out-of-tree PWDs. in lieu of an upstream fix let's try our best
to get the correct coverage directory set. without this hack no results
get recorded unfortunately.

6 years agoredo service menu ruby helpers from ground up more or less
Harald Sitter [Tue, 26 Feb 2019 12:48:08 +0000 (13:48 +0100)]
redo service menu ruby helpers from ground up more or less

Summary:
- apply ruby community style guidelines
- full rewrite fixing, among other things:
  - inefficient/unreadable String#end_with reimplementation
  - inefficient use of Kernel.system (forked shell to fork a shell)
  - inefficient/unreadable Dir.glob reimplementation
  - inefficient File initialization for single chmod
  - invocation conditions are now actually readable
  - invocation conditions now also force +x on argless scripts, not just
    scripts that need arguments
  - repetitive conditions are now expressed as loops on argument arrays
  - mime detection now uses xdg-mime instead of file (xdg-mime internally
    may fall back to mime but will prefer higher level tools such as
    kmimetypefinder5; giving better results overall)
  - return values of "backtick forks" are now checked and will produce
    suitable errors on stderr
  - fail now takes a log_msg argument which is printed to stderr. this
    is in addition to the error raised as notification for the user, as
    that is unfortunately not so useful for diagnostics
  - overall error handling and logging of problem causes is much improved
- add license headers. the original code was actually fairly exhaustive, so
  this really should have had a header to begin with. the code was
  originally introduced in svn r1045663 on Nov 6 14:56:35 2009 UTC
- add blackbox tests. in the interest of keeping the scripts actually
  simple scripts (as opposed to a bunch of classes used by even simpler
  scirpts) they are now also covered by test rigging which runs them as
  scripts (again, as opposed to individual unit testing of distinct units)
  - the tests optionally can use simplecov to gather coverage metrics
  - also wired up to ctest so it actually gets run

structurally there is actually a fair amount of overlap between the two
scripts, but again, in the interest of keeping things simple I think it's
better to live with that instead of refactoring a shared library out of
it and then use heavy-duty meta-programming

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19334

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Sun, 17 Mar 2019 22:12:38 +0000 (16:12 -0600)]
Merge branch 'Applications/19.04'

6 years agoCreate a global launch shortcut (Meta+E)
Nate Graham [Sun, 17 Mar 2019 16:05:46 +0000 (10:05 -0600)]
Create a global launch shortcut (Meta+E)

Summary:
This patch adds a global shortcut ({key Meta E}) to launch Dolphin, just like Konsole has.

FEATURE: 405302
FIXED-IN: 19.04.0

Test Plan:
1. Apply patch and reboot, or create and log into a new user
2. Hit {key Meta E}
3. Dolphin opens!

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: hallas, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19831

6 years agoMerge remote-tracking branch 'origin/Applications/19.04'
Méven Car [Sun, 17 Mar 2019 20:25:24 +0000 (21:25 +0100)]
Merge remote-tracking branch 'origin/Applications/19.04'

6 years agoWhen the previewed video stops playing (because of the user or because the media...
Méven Car [Sun, 17 Mar 2019 20:21:33 +0000 (21:21 +0100)]
When the previewed video stops playing (because of the user or because the media playback has ended), show the regular preview only if the preview setting is on.

Summary:
Bug result after test plan :

{F6698812}

Test Plan:
In dolphin with the information panel
Select a video
Play the video
Disable the preview through the context menu (the video stays playing and visible and this will get fixed in a subsequent review)
Stop the video -> the video preview reappears when it should not

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19843

6 years agoMerge remote-tracking branch 'origin/Applications/19.04'
Méven Car [Sun, 17 Mar 2019 18:38:31 +0000 (19:38 +0100)]
Merge remote-tracking branch 'origin/Applications/19.04'

6 years agoFix a todo: InformationPanelContent::configureSettings code is moved to InformationPa...
Méven Car [Sun, 17 Mar 2019 16:24:30 +0000 (17:24 +0100)]
Fix a todo: InformationPanelContent::configureSettings code is moved to InformationPanel::contextMenuEvent

Summary:
Fix a TODO : InformationPanelContent::configureSettings code is moved to InformationPanel::contextMenuEvent
Adding necessary accessors and changing visibility of one slot.

Test Plan:
1 compile
2 in dolphin right on the information panel
3 toggle preview
4 from the same context menu, click configure, metadadata settings appears
5 toggle "condensed date" if available

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19832

6 years agoMerge remote-tracking branch 'origin/Applications/19.04'
David Hallas [Sun, 17 Mar 2019 18:13:05 +0000 (19:13 +0100)]
Merge remote-tracking branch 'origin/Applications/19.04'

6 years agoFix "Add Network Folder" tooltip icon does not show on Breeze, shows correctly on...
David Hallas [Wed, 13 Mar 2019 20:10:11 +0000 (21:10 +0100)]
Fix "Add Network Folder" tooltip icon does not show on Breeze, shows correctly on Breeze Dark

Summary:
Fix "Add Network Folder" tooltip icon does not show on Breeze, shows correctly
on Breeze Dark. The fix is taken from D19596.

Test Plan:
Open Dolphin with the Breeze theme
Hover the mouse over the "Add Network Folder"
The icon is black on black

BUG: 404858

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19738

6 years agoFix crash at shutdown after showing a tooltip
David Hallas [Wed, 13 Mar 2019 19:27:40 +0000 (20:27 +0100)]
Fix crash at shutdown after showing a tooltip

Summary:
Fix crash at shutdown after showing a tooltip. The commit
94d7e1471e0a81b72285795ad91c4f6196157ae4 introduced a crash that occurs
when closing Dolphin after Dolphin has showed a tooltip. This happens
because the ToolTipManager::showToolTip function calls the
KToopTipWidget::showBelow function passing in the pointer to the
DolphinFileMetaDataWidget. But this also passes the ownership of the
pointer to the KToopTipWidget as long as a new tooltip is not shown. The
problem is that at shutdown, the KToopTipWidget instance will be
destoyed first and therefore also destroy the DolphinFileMetaDataWidget
instance (which the ToolTipManager still owns through the
QScopedPointer) causing it to be deleted twice. The fix for this is
simply to swap the order of these two members so that the
DolphinFileMetaDataWidget is destroyed first by the QScopedPointer
thereby removing it from the KToopTipWidget if it has been set as it's
parent.

Test Plan:
Open Dolphin
Show a Tool Tip
Close Dolphin

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19737

6 years agoFix crash at shutdown after showing a tooltip
David Hallas [Wed, 13 Mar 2019 19:27:40 +0000 (20:27 +0100)]
Fix crash at shutdown after showing a tooltip

Summary:
Fix crash at shutdown after showing a tooltip. The commit
94d7e1471e0a81b72285795ad91c4f6196157ae4 introduced a crash that occurs
when closing Dolphin after Dolphin has showed a tooltip. This happens
because the ToolTipManager::showToolTip function calls the
KToopTipWidget::showBelow function passing in the pointer to the
DolphinFileMetaDataWidget. But this also passes the ownership of the
pointer to the KToopTipWidget as long as a new tooltip is not shown. The
problem is that at shutdown, the KToopTipWidget instance will be
destoyed first and therefore also destroy the DolphinFileMetaDataWidget
instance (which the ToolTipManager still owns through the
QScopedPointer) causing it to be deleted twice. The fix for this is
simply to swap the order of these two members so that the
DolphinFileMetaDataWidget is destroyed first by the QScopedPointer
thereby removing it from the KToopTipWidget if it has been set as it's
parent.

Test Plan:
Open Dolphin
Show a Tool Tip
Close Dolphin

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19737

6 years agoMake global view properties the default setting
Elvis Angelaccio [Sun, 17 Mar 2019 15:43:20 +0000 (16:43 +0100)]
Make global view properties the default setting

Summary:
Automatic creation of .directory files is one of the most
complained about things in dolphin.

These days applications are supposed to store application-specific data
within $XDG_DATA_HOME. Long-term that's the proper solution for this
issue, but for now we can at least flip the default so that we no longer
create .directory files out of the box.

A tooltip is also added as a kind of warning for the users who want to
change the setting. Ideally a proper warning should be shown using a
KMessageWidget or KMessageBox, but neither play too well with the
setting dialog workflow used by dolphin.

CCBUG: 322922

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19661

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.07.70.
Albert Astals Cid [Sat, 16 Mar 2019 21:11:47 +0000 (22:11 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.07.70.

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.03.80.
Albert Astals Cid [Sat, 16 Mar 2019 20:54:08 +0000 (21:54 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.03.80.

6 years agoUpdate screenshot
Yuri Chornoivan [Wed, 13 Mar 2019 10:53:12 +0000 (12:53 +0200)]
Update screenshot

6 years agoCorrectly position context menu of the information panel under wayland with a seconda...
Méven Car [Tue, 12 Mar 2019 14:54:46 +0000 (08:54 -0600)]
Correctly position context menu of the information panel under wayland with a secondary screen

Summary:
According to my testing this bug occurs because Qcursor::pos() does not work as expected under wayland on a secondary screen, then it returns inaccurate data.
This could hide bugs elsewhere.

BUG: 404799
FIXED-IN: 19.04.0

Test Plan:
Under Wayland test the context menu on both screens.
Do the same under Xorg.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, nicolasfella, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19535

6 years agoFixes leak of DolphinFileMetaDataWidget in ToolTipManager
David Hallas [Sun, 3 Mar 2019 06:37:52 +0000 (07:37 +0100)]
Fixes leak of DolphinFileMetaDataWidget in ToolTipManager

Summary:
Fixes leak of DolphinFileMetaDataWidget in ToolTipManager. The
destructor of ToolTipManager failed to delete the m_fileMetaDataWidget
member. This is seen at shutdown but also when you close a tab that has
displayed a tooltip.

Test Plan:
Compile Dolphin with address sanitizer
Open Dolphin
Show a tooltip
Close Dolphin

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19485

6 years ago[FoldersPanel] Stop ignoring positions from the controller
Elvis Angelaccio [Sun, 10 Mar 2019 11:45:43 +0000 (12:45 +0100)]
[FoldersPanel] Stop ignoring positions from the controller

This fixes the position of Folder panel's context menus on multi-screens
on Wayland, because `QCursor::pos()` is not reliable on those setups.

6 years ago[FoldersPanel] Don't show 'Limit to Home Directory' in the view context menu
Elvis Angelaccio [Sun, 10 Mar 2019 11:37:25 +0000 (12:37 +0100)]
[FoldersPanel] Don't show 'Limit to Home Directory' in the view context menu

The `viewContextMenuRequested` signal is emitted without a valid
KFileItem, so `m_fileItem` will always be null in `TreeViewContextMenu::open()`.

6 years agoFix clazy-fully-qualified-moc-types warning
Elvis Angelaccio [Sun, 10 Mar 2019 10:34:40 +0000 (11:34 +0100)]
Fix clazy-fully-qualified-moc-types warning

Slot arguments should be fully-qualified.

6 years agoport to std::stable_sort
Laurent Montel [Sun, 10 Mar 2019 09:51:24 +0000 (10:51 +0100)]
port to std::stable_sort

6 years agoFix context for QDateTime::toString() translations
Elvis Angelaccio [Sun, 17 Feb 2019 11:26:52 +0000 (12:26 +0100)]
Fix context for QDateTime::toString() translations

Summary:
The documentation of QDateTime::toString() says that:

    Any sequence of characters that are enclosed in single
    quotes will be treated as text and not be used as an expression.

This means that translators cannot replace single quotes with other
characters such as «...». This is now described in the context of the
affected strings.

We also check that the translated string contains exactly 2 single
quotes, and we use the untraslated string otherwise.

BUG: 401382

Reviewers: lueck, aacid, cfeck

Subscribers: ltoscano, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18769

6 years agoNew tab placed after current tab when middle-clicking
David Hallas [Thu, 21 Feb 2019 14:45:27 +0000 (15:45 +0100)]
New tab placed after current tab when middle-clicking

Summary:
New tabs should be placed after the currently active tab when using
middle click.

Test Plan:
Open new tab from the places panel using middle click, verify that the
Open new tab from the folders panel using middle click, verify that the
tab is opened after the current tab
Open new tab by middle clicking on the Back button, verify that the tab
is opened after the current tab
Open new tab by middle clicking on the Forward button, verify that the tab
is opened after the current tab

FEATURE: 403690

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19201

6 years agoSync docs with code (screenshot of Behavior page is still unsynced)
Yuri Chornoivan [Sat, 9 Mar 2019 06:56:46 +0000 (08:56 +0200)]
Sync docs with code (screenshot of Behavior page is still unsynced)

6 years agoImprove wording of split view/pane settings
Simon Depiets [Wed, 6 Mar 2019 00:15:43 +0000 (08:15 +0800)]
Improve wording of split view/pane settings

Summary:
I found these strings very hard to understand then translate without looking into the code because the use of "view" refers to both "the split view" and "the left pane and the right pane of the split view".

This patch attempts to explicitly mention panes when needed.

Reviewers: #dolphin, angeloevertonjr, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19579

6 years agoUse new display string function from KFileMetaData
Alexander Stippich [Fri, 1 Mar 2019 11:01:58 +0000 (12:01 +0100)]
Use new display string function from KFileMetaData

Summary:
Delete all the custom formatting functions
and use the ones provided from KFileMetaData.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: bcooksley, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19105

6 years agoremove deprecated methods
Laurent Montel [Wed, 27 Feb 2019 07:59:18 +0000 (08:59 +0100)]
remove deprecated methods

6 years agoGive the "Sort by" menu an appropriate icon
Nate Graham [Sun, 24 Feb 2019 21:09:53 +0000 (14:09 -0700)]
Give the "Sort by" menu an appropriate icon

6 years agoFixes memory leak of KItemListHeader
David Hallas [Sun, 29 Jul 2018 10:10:16 +0000 (12:10 +0200)]
Fixes memory leak of KItemListHeader

Summary:
Fixes memory leak of KItemListHeader
The KItemListHeader passed the listView parent object to the QObject
base class, but that pointer seems to always be nullptr causing the
KItemListHeader to not be memory managed by anything. Instead simple
use the listView as parent pointer.

Test Plan: This leak was found using Address Sanitizer

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D14453

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 24 Feb 2019 01:53:48 +0000 (02:53 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Fri, 22 Feb 2019 04:30:16 +0000 (05:30 +0100)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoUpdate screenshots and some minor bits in docs
Yuri Chornoivan [Mon, 18 Feb 2019 15:36:07 +0000 (17:36 +0200)]
Update screenshots and some minor bits in docs

6 years agoFix crash during shutdown
David Hallas [Sat, 16 Feb 2019 15:50:42 +0000 (16:50 +0100)]
Fix crash during shutdown

Summary:
Fix crash during shutdown. The root cause is that when Dolphin in stopped as
part of an activity, the KItemListViewAccessible destructor is called after
QApplication::exec has returned causing Qt to already having cleaned up the
QAccessibleInterface instances kept in KItemListViewAccessible. Instead of
storing the pointers to QAccessibleInterface we store the QAccessible::Id so
that we can use the QAccessible::deleteAccessibleInterface function for
deleting the instances.

BUG: 402784

Test Plan:
I wasn't able to reproduce the crash in the first place, but I have just
opened and closed Dolphin a few times and verified the the QAccessibleInterface
instances are correctly cleaned up.

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19083

6 years agoMerge branch 'Applications/18.12'
Nate Graham [Sun, 17 Feb 2019 21:07:49 +0000 (14:07 -0700)]
Merge branch 'Applications/18.12'

6 years agoWord-wrap KMessageWidget text
Nate Graham [Tue, 12 Feb 2019 19:21:34 +0000 (12:21 -0700)]
Word-wrap KMessageWidget text

Summary:
Word-wrap KMessageWidget text to prevent the window from being widened
when the text is very long.

CCBUG: 404232

Only `CCBUG: ` because word wrap only works where QLabel detects a word boundary;
it will not wrap a string with no spaces or other word boundaries (e.g.
"aaaaaaaaaaaaaaaaaaaa...")

Test Plan:
- Create a new text file with a 300-character name that has spaces in it
- In the KMessageWidget's error message, the file name is wrapped at the word
boundaries

Reviewers: #dolphin, #frameworks, cfeck, elvisangelaccio

Reviewed By: #dolphin, cfeck, elvisangelaccio

Subscribers: elvisangelaccio, cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18968

6 years agoAdd new option to close the inactive split view to the docs
Yuri Chornoivan [Sun, 17 Feb 2019 09:59:34 +0000 (11:59 +0200)]
Add new option to close the inactive split view to the docs

6 years agoNew tab should be placed after the current tab
David Hallas [Tue, 12 Feb 2019 10:07:43 +0000 (11:07 +0100)]
New tab should be placed after the current tab

Summary:
When opening a new using the context menu the new tab should be placed
after the currently open tab, not at the end of the tab list.

BUG: 403690

Test Plan:
Open multiple tabs and select a different tab than the last one.
Open a new tab using the context menu and see that it opens after the currently
selected tab.
Open a tab using Ctrl+T and see that it opens at the end.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18945

6 years agoAdd option to choose which view to close
Angelo Oliveira Jr [Sat, 16 Feb 2019 15:08:12 +0000 (16:08 +0100)]
Add option to choose which view to close

Summary:
This Diff make configurable which view will close when toggling off
the split view mode, if it's the active one or the inactive one.

A new checkbox was added to the Dolphin configuration window,
and defaults to the original behavior.

FEATURE: 312834
FIXED-IN: 19.03.80

Test Plan: {F6535432}

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin

Subscribers: elvisangelaccio, cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18040

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 13 Feb 2019 06:36:24 +0000 (07:36 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 13 Feb 2019 01:57:24 +0000 (02:57 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoMerge branch 'Applications/18.12'
Kai Uwe Broulik [Fri, 8 Feb 2019 08:02:00 +0000 (09:02 +0100)]
Merge branch 'Applications/18.12'

6 years ago[DolphinView] Use correct color group
Kai Uwe Broulik [Fri, 8 Feb 2019 08:01:38 +0000 (09:01 +0100)]
[DolphinView] Use correct color group

Use the inactive color group when the window is inactive and update when window state changes.

CCBUG: 404053

Differential Revision: https://phabricator.kde.org/D18811

6 years agoMerge branch 'Applications/18.12'
Kai Uwe Broulik [Wed, 6 Feb 2019 15:24:01 +0000 (16:24 +0100)]
Merge branch 'Applications/18.12'

6 years agoSort preview plugins case-insensitively
Kai Uwe Broulik [Wed, 6 Feb 2019 15:23:19 +0000 (16:23 +0100)]
Sort preview plugins case-insensitively

"eBook thumbnails" would show up all the way at the bottom otherwise

Test Plan: 18.12 branch It now shows where it should

Differential Revision: https://phabricator.kde.org/D18787

6 years agoUse more suitable default view mode for recent documents and Downloads folder
Kai Uwe Broulik [Mon, 4 Feb 2019 08:12:35 +0000 (09:12 +0100)]
Use more suitable default view mode for recent documents and Downloads folder

Sort them descending by date as well as:
* for Recent Documents: switch to details view
* for Downloads enable grouping and disable sorting folders first

Differential Revision: https://phabricator.kde.org/D18697

6 years agoGIT_SILENT Upgrade KDE Applications version to 18.12.2.
Christoph Feck [Sun, 3 Feb 2019 04:46:38 +0000 (05:46 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.12.2.

6 years agoMerge branch 'Applications/18.12'
Elvis Angelaccio [Sat, 2 Feb 2019 20:37:06 +0000 (21:37 +0100)]
Merge branch 'Applications/18.12'

6 years agoFix member initialization
Anthony Fieroni [Sat, 2 Feb 2019 17:48:09 +0000 (19:48 +0200)]
Fix member initialization

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
6 years ago[versioncontrolobserver] Update working directory on tab activation
Anthony Fieroni [Sat, 2 Feb 2019 17:38:37 +0000 (19:38 +0200)]
[versioncontrolobserver] Update working directory on tab activation

Differential Revision: https://phabricator.kde.org/D18605

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 30 Jan 2019 06:19:49 +0000 (07:19 +0100)]
GIT_SILENT made messages (after extraction)

6 years ago[versioncontrolobserver] Do not use static plugin objects
Anthony Fieroni [Tue, 29 Jan 2019 18:28:07 +0000 (20:28 +0200)]
[versioncontrolobserver] Do not use static plugin objects

Differential Revision: https://phabricator.kde.org/D17640

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
6 years agoAfter opening and switching to a new tab, always focus the view
Nate Graham [Tue, 29 Jan 2019 13:31:46 +0000 (06:31 -0700)]
After opening and switching to a new tab, always focus the view

Summary:
When Dolphin opens a new tab and immediately switches to it, the URL navigator gets focus if it's editable. If it's not, the breadcrumbs bar gets keyboard focus, which is not very useful since it's not really intended for keyboard navigation.

This patch changes that behavior so that the view always gets focus, which seems more useful and more consistent.

BUG: 401899
FIXED-IN: 19.04.0

Test Plan:
1. Put the URL navigator into breadcrumbs mode
2. Open a new tab
3. Observe that the view gets keyboard focus
4. Put the URL navigator into editable mode
5. Open a new tab
6. Observe that the view still gets keyboard focus

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: emateli, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17635

6 years agoIntroduce HAVE_TERMINAL
Elvis Angelaccio [Mon, 28 Jan 2019 21:38:21 +0000 (22:38 +0100)]
Introduce HAVE_TERMINAL

Source code should check for features detected during configure-time,
rather than checking for a specific OS.

See also commit 87e8d0ba5f.

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 28 Jan 2019 07:29:51 +0000 (08:29 +0100)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 28 Jan 2019 04:21:42 +0000 (05:21 +0100)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoAsk for confirmation when Closing Dolphin windows with a terminal panel running a...
Nate Graham [Sat, 19 Jan 2019 15:11:26 +0000 (08:11 -0700)]
Ask for confirmation when Closing Dolphin windows with a terminal panel running a program

Summary:
Ask for confirmation when Closing Dolphin windows with a terminal panel running a program.

FEATURE: 304816
FIXED-IN: 19.04.0

Test Plan:
# Open terminal panel
# Run `watch ls`
# Close Dolphin
# Observe confirmation
# Disable confirmation
# Repeat, observe no confirmation
# Enable confirmation in the settings
# Repeat, observe a confirmation

Reviewers: #dolphin, markg, elvisangelaccio, rominf

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel, elvisangelaccio, markg, ngraham, rkflx, broulik, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D10960

6 years agoAbort updateWindowTitle and activeViewChanged if not changed.
Chris Rizzitello [Mon, 14 Jan 2019 01:55:07 +0000 (20:55 -0500)]
Abort updateWindowTitle and activeViewChanged if not changed.

Summary:
 - Prevent activeViewChanged from updating the window if the view is the same view (happens at least once when starting up)
 - Stop updateWindowTitle from updating the title if its not changed.

Reviewers: #dolphin, elvisangelaccio, broulik

Reviewed By: #dolphin, elvisangelaccio, broulik

Subscribers: anthonyfieroni, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17882

6 years agoFix required version for baloo and kfilemetadata
Elvis Angelaccio [Tue, 15 Jan 2019 17:53:45 +0000 (18:53 +0100)]
Fix required version for baloo and kfilemetadata

6 years agoUse stable version as required version for baloo-widgets
Elvis Angelaccio [Tue, 15 Jan 2019 17:52:02 +0000 (18:52 +0100)]
Use stable version as required version for baloo-widgets

6 years agoDrop unused includes
Elvis Angelaccio [Tue, 15 Jan 2019 17:50:33 +0000 (18:50 +0100)]
Drop unused includes

GIT_SILENT

6 years agoDrop unused config-X11.h.cmake
Elvis Angelaccio [Tue, 15 Jan 2019 17:30:16 +0000 (18:30 +0100)]
Drop unused config-X11.h.cmake

Unused since de84f223d4408dc1eaf6f15ebeed2e8acf49ad4c

6 years agoFix include style
Elvis Angelaccio [Tue, 15 Jan 2019 17:11:09 +0000 (18:11 +0100)]
Fix include style

GIT_SILENT

6 years agoConsti'fy
Laurent Montel [Fri, 11 Jan 2019 06:03:26 +0000 (07:03 +0100)]
Consti'fy

6 years agoMerge branch 'Applications/18.12'
Alexander Stippich [Mon, 7 Jan 2019 20:56:40 +0000 (21:56 +0100)]
Merge branch 'Applications/18.12'

6 years agofix display of image orientation
Alexander Stippich [Mon, 7 Jan 2019 20:44:50 +0000 (21:44 +0100)]
fix display of image orientation

Summary:
The name of the orientation property
for baloo/kfilemetadata was false, leading to
an always empty image orientation field.

Test Plan:
Look at an image in Dolphin details view
which has the exiv orientation tag set. Orientation
column is not empty.

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18008

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sun, 6 Jan 2019 07:35:14 +0000 (08:35 +0100)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sun, 6 Jan 2019 04:25:48 +0000 (05:25 +0100)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

7 years agoFix title update when changing active split view
Elvis Angelaccio [Sat, 5 Jan 2019 16:29:34 +0000 (17:29 +0100)]
Fix title update when changing active split view

Summary:
The DolphinTabPage::activeViewUrlChanged signal triggers the title
update in DolphinMainWindow, which sets the new title from the
`m_activeViewContainer` instance.

This means we need to notify the main window that the active view
changed before telling it that the current url changed.

BUG: 402641
FIXED-IN: 18.12.1

Reviewers: #dolphin, rizzitello, ngraham

Reviewed By: #dolphin, rizzitello, ngraham

Subscribers: rizzitello, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17881

7 years agoMerge branch 'Applications/18.12'
Friedrich W. H. Kossebau [Fri, 4 Jan 2019 21:23:49 +0000 (22:23 +0100)]
Merge branch 'Applications/18.12'

7 years agoUse https over http for homepage url
Friedrich W. H. Kossebau [Fri, 4 Jan 2019 21:22:07 +0000 (22:22 +0100)]
Use https over http for homepage url

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.12.1.
Christoph Feck [Thu, 3 Jan 2019 21:47:46 +0000 (22:47 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.12.1.

7 years agoAdd failing test case for bug #402641
Elvis Angelaccio [Sun, 30 Dec 2018 23:21:25 +0000 (00:21 +0100)]
Add failing test case for bug #402641

CCBUG: 402641

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 28 Dec 2018 01:42:41 +0000 (02:42 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 26 Dec 2018 01:48:09 +0000 (02:48 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 24 Dec 2018 01:46:19 +0000 (02:46 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 23 Dec 2018 05:55:00 +0000 (06:55 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 21 Dec 2018 01:51:21 +0000 (02:51 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoMerge branch 'Applications/18.12'
Nate Graham [Wed, 19 Dec 2018 05:04:46 +0000 (22:04 -0700)]
Merge branch 'Applications/18.12'

7 years agoUse correct icon for the "New Window" menu item
Nate Graham [Wed, 19 Dec 2018 05:03:16 +0000 (22:03 -0700)]
Use correct icon for the "New Window" menu item

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 19 Dec 2018 01:49:13 +0000 (02:49 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoMake RenameDialog modal again.
Elvis Angelaccio [Mon, 17 Dec 2018 21:51:42 +0000 (22:51 +0100)]
Make RenameDialog modal again.

Summary:
The rename dialog used to be modal, but commit
828ba8902ce16819a385832b487e60eab36e54ca changed the behavior without
really explaining why.

Test Plan: disable inline renaming and rename something.

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17621

7 years agoReturn editable URL navigator to breadcrumb mode if it has focus and everything is...
Nate Graham [Sun, 16 Dec 2018 20:49:57 +0000 (13:49 -0700)]
Return editable URL navigator to breadcrumb mode if it has focus and everything is selected and when Ctrl+L is pressed

Summary:
This patch makes an editable location bar return to breadcrumb mode when {key Ctrl L} is pressed, but only if the location bar currently has focus and everything is selected. Otherwise, it will simply return focus to it as before.

This provides a slightly easier way to make the location bar return to breadcrumbs mode

Test Plan:
- Compile and deploy and make the location bar be breadcrumbs
- Hit {key Ctrl L} twice in a row -> location field turns to being in breadcrumb mode. Focus is correctly returned to the main view.
- Hit {key Ctrl L}, move focus elsewhere, then hit {key Ctrl L} again -> Location bar is editable and focused with everything selected.
- Hit {key Ctrl L}, deselect some of the text, then hit {key Ctrl L} again -> Location bar selects everything.

Reviewers: #dolphin, elvisangelaccio, dhaumann

Reviewed By: elvisangelaccio, dhaumann

Subscribers: elvisangelaccio, dhaumann, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16980

7 years agoDrop old krazy comments
Elvis Angelaccio [Sun, 16 Dec 2018 12:57:51 +0000 (13:57 +0100)]
Drop old krazy comments

The `qclasses` check should no longer be an issue after the KF5 port.

GIT_SILENT

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 12 Dec 2018 06:47:04 +0000 (07:47 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoAdd an icon for "restore" action
Shubham Jangra [Mon, 10 Dec 2018 18:19:55 +0000 (23:49 +0530)]
Add an icon for "restore" action

Summary:
Before:
{F6469103}

After:
{F6469104}

Test Plan:
1. Go to Trash

2. Right click any item.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17490

7 years agoRevert back
Shubham Jangra [Mon, 10 Dec 2018 18:12:11 +0000 (23:42 +0530)]
Revert back

7 years agoAdd an icon for "restore" action
Shubham Jangra [Mon, 10 Dec 2018 17:49:09 +0000 (23:19 +0530)]
Add an icon for "restore" action

Summary:
Before:
{F6469103}

After:
{F6469104}

Test Plan:
1. Go to Trash

2. Right click any item.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17490

7 years agoRemove unused parameter warning
Shubham Jangra [Fri, 7 Dec 2018 16:58:29 +0000 (22:28 +0530)]
Remove unused parameter warning

7 years ago[context menu] Restore separator above 'Properties' that went missing
Nate Graham [Thu, 6 Dec 2018 21:10:58 +0000 (14:10 -0700)]
[context menu] Restore separator above 'Properties' that went missing

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.12.0.
Christoph Feck [Tue, 4 Dec 2018 23:32:23 +0000 (00:32 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.12.0.

7 years agoMerge branch 'Applications/18.12'
Elvis Angelaccio [Tue, 4 Dec 2018 21:04:41 +0000 (22:04 +0100)]
Merge branch 'Applications/18.12'

7 years agoKItemListWidget: Use initStyleOption
Anton Kreuzkamp [Mon, 3 Dec 2018 14:01:36 +0000 (15:01 +0100)]
KItemListWidget: Use initStyleOption

Instead of using QStyleOption::initFrom, let's use
QGraphicsWidget::initStyleOption, which is made for exactly the purpose
of KItemListWidget. This is especially important since, according to the
docs of QGraphicsItem::paint "The widget argument is optional. [...]
For cached painting, widget is always 0.". Even though currently no code
in dolphin does cached painting, for the sake of modularity one should
not rely on widget to be non-null. Using QStyleOption::initFrom does
assume that, though.

In fact, GammaRay asks the items to do cached painting when attaching it
to the application, causing it to crash.

7 years ago[PlacesPanel] Fix unused variable warning
Elvis Angelaccio [Sun, 2 Dec 2018 13:48:01 +0000 (14:48 +0100)]
[PlacesPanel] Fix unused variable warning

7 years ago[KItemListController] Make event-handling functions private
Elvis Angelaccio [Sun, 2 Dec 2018 13:42:41 +0000 (14:42 +0100)]
[KItemListController] Make event-handling functions private

There is no reason why these event-handling custom functions should be
public, so make them private instead.