Feed Advanced Search

Jun 27 2018

muhlenpfordt added a reviewer for D13754: Enable AutoErrorHandling for rename job: Gwenview.

An extended error message (e.g. with Overwrite option) for Browse Mode needs a bit of rework, since the renaming is done by the model (not Gwenview) here.

Jun 27 2018, 10:39 AM
muhlenpfordt requested review of D13754: Enable AutoErrorHandling for rename job.
Jun 27 2018, 10:38 AM
muhlenpfordt accepted D13728: Separate directories and archives when sorting by date.

Looks good to me and works perfect for all sort options. 👍

Jun 27 2018, 8:05 AM
muhlenpfordt accepted D13727: Fix sorting by date in some situations.

No issues found with any timestamp combinations I tested. :)

Jun 27 2018, 8:04 AM

Jun 22 2018

muhlenpfordt accepted D13669: Make mapping between sorting enum and model columns explicit.

Looks good to me and adding the Rating sort option should be easy.

Jun 22 2018, 7:47 AM

Jun 19 2018

muhlenpfordt added a comment to D13344: Add possibility to sort by rating.

I think I found the problem.
The enum value Sorting::Rating equals ModelColumns::Permissions, see here.
In BrowseMainPage::updateSortOrder() the sort order is set based on the enum value.
Maybe we should add a special case for rating sort order here.

Jun 19 2018, 11:05 AM
muhlenpfordt added a comment to D13344: Add possibility to sort by rating.

Works good for me.

Jun 19 2018, 10:08 AM

Jun 1 2018

muhlenpfordt accepted D13249: Refine behaviour for dragging modified images to external applications.

Works as promised and code looks good to me.
(Seems like LibreOffice and Inkscape does not support NEF files - dropping an unmodified file here results in a mini preview for LO and an error message from Inkscape, while dropping an edited version is ok.)

Jun 1 2018, 10:41 AM
muhlenpfordt accepted D13248: Refactor determining mime data for selection.

Looks fine! :)
I can't spot any different behaviour and the patch also improves readability.

Jun 1 2018, 9:50 AM

May 29 2018

muhlenpfordt committed R260:cec36220a487: Add system "Home" shortcuts as default for opening Start Page (authored by muhlenpfordt).
Add system "Home" shortcuts as default for opening Start Page
May 29 2018, 7:27 AM
muhlenpfordt closed D13166: Add system "Home" shortcuts as default for opening Start Page.
May 29 2018, 7:27 AM

May 28 2018

muhlenpfordt requested review of D13166: Add system "Home" shortcuts as default for opening Start Page.
May 28 2018, 8:12 AM

May 26 2018

muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.

You mean KIO should not be adapted to react to the passed filename extension, and users should manually switch from PNG to JPG when they are pasting from a JPG?

May 26 2018, 5:51 AM

May 25 2018

muhlenpfordt committed R260:e3cf0b40a6eb: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 25 2018, 7:23 AM
muhlenpfordt committed R260:5d3d973593c7: Update thumbnail de-/select hover button on selection change (authored by muhlenpfordt).
Update thumbnail de-/select hover button on selection change
May 25 2018, 7:22 AM
muhlenpfordt closed D13010: Update thumbnail de-/select hover button on selection change.
May 25 2018, 7:22 AM
muhlenpfordt accepted D13028: Refine behaviour for copying modified images to external applications.

Looks flawless to me and I can't spot any more issues. :)
I think the behaviour is totally comprehensible and it's not worth fiddling with the original image formats.

May 25 2018, 7:10 AM

May 24 2018

muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.

If the file was modified this results in Dolphin not saving for image/x-tga, etc. and you have to select another mimetype to create the file.

Here it gets interesting: I cannot reproduce your claim for BMP, but I can see it for TGA and PBM.

May 24 2018, 8:21 AM

May 23 2018

muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.

Works perfect for the common file formats.
For a couple of image formats (e.g. TGA, BMP, PBM, PNG) doc->rawData() returns an empty array (modified or not). If the file was modified this results in Dolphin not saving for image/x-tga, etc. and you have to select another mimetype to create the file. PNG seems to be a special case and works anyway.
I'm not sure if this is a bug or feature of Document?
Any idea how Dolpin selects the preferred mimetype - maybe we could just mark this without setting the data?

May 23 2018, 8:23 AM
muhlenpfordt added a comment to D13010: Update thumbnail de-/select hover button on selection change.
  • ThumbnailBar::selectionChanged is always triggered twice when selection changes. Seems to me there's some sort of selection changed event duplication happening somewhere
May 23 2018, 7:03 AM

May 22 2018

muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.

It seems application/x-qt-image is always a PNG image. At least I did not see anything other so far.

May 22 2018, 8:51 AM
muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.
@rkflx wrote:

However, I just noticed that pasting a cropped NEF will set the correct mimetype (due to my patch), but the pasting itself will fail in the end. Maybe Dolphin can only paste Qt's image formats after all?

May 22 2018, 8:37 AM
muhlenpfordt added a comment to D13028: Refine behaviour for copying modified images to external applications.

Works good for all images and destination apps I found. :)
There's only one issue with non image selections (see inline comment).

May 22 2018, 7:11 AM

May 21 2018

muhlenpfordt committed R260:b94861f27a29: Copy raster image and SVG content to clipboard (authored by muhlenpfordt).
Copy raster image and SVG content to clipboard
May 21 2018, 8:44 AM
muhlenpfordt closed D12871: Copy raster image and SVG content to clipboard.
May 21 2018, 8:44 AM
muhlenpfordt added a reviewer for D13010: Update thumbnail de-/select hover button on selection change: Gwenview.

(Not in the scope of this fix - I just noticed that PreviewItemDelegate and ThumbnailBarItemDelegate duplicates some code but it seems not that easy to merge.)

May 21 2018, 8:24 AM
muhlenpfordt requested review of D13010: Update thumbnail de-/select hover button on selection change.
May 21 2018, 8:22 AM

May 20 2018

muhlenpfordt committed R260:334382c3ebf1: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 20 2018, 3:20 PM
muhlenpfordt committed R260:358ff25a4ab9: Update paste action on current directory and selection changes (authored by muhlenpfordt).
Update paste action on current directory and selection changes
May 20 2018, 3:20 PM
muhlenpfordt closed D12902: Update paste action on current directory and selection changes.
May 20 2018, 3:20 PM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.

Hm, it's not working very reliably in Browse mode, because depending on what you've done before, the focus (i.e. currentUrl()) might not correspond to the first (or even any) selected image. It's working great for Compare, though.

May 20 2018, 8:23 AM
muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Get selected, not current item in Browse Mode
Use temp bool to be more readable

May 20 2018, 8:23 AM

May 19 2018

muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Fix: Don't copy all urls in Compare Mode (only current)

May 19 2018, 1:49 PM
muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Extend comment (edited images)

May 19 2018, 11:19 AM
muhlenpfordt added inline comments to D12871: Copy raster image and SVG content to clipboard.
May 19 2018, 8:32 AM
muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Use currentUrl() to handle compare mode

May 19 2018, 8:32 AM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.

Would it be easy to special-case comparing images in View mode, e.g. via mThumbnailView->isVisible(), and then use contextManager()->currentUrl()? There, copying the pixmap of the focused image would probably be what users are expecting. If not, that would also be okay.

May 19 2018, 8:04 AM

May 18 2018

muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

const added

May 18 2018, 10:20 AM
muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Copy content for copy and cut
Copy SVG content

May 18 2018, 9:39 AM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.
  • Is there any reason we don't do the same for copying a single image in Browse mode? Essentially we are working around a missing feature in GIMP and Inkscape (i.e. pasting from a URL), so we might as well apply the same workaround (or feature in case of modifications) there? After all, in Browse mode the modified image is displayed too (thumbnail and save icon). For the multi-selection case we could fall back to selectionMimeData().
May 18 2018, 9:11 AM

May 17 2018

muhlenpfordt added inline comments to D12902: Update paste action on current directory and selection changes.
May 17 2018, 6:59 AM
muhlenpfordt updated the diff for D12902: Update paste action on current directory and selection changes.

Update state when current directory or selection changes

May 17 2018, 6:59 AM
muhlenpfordt added a comment to D12902: Update paste action on current directory and selection changes.

However, I notice that in Dolphin, pressing the shortcut (Ctrl+V) still results in an error dialog. So it's not the entire action that is disabled, just the menu item. We should copy that behaviour I think.

May 17 2018, 6:17 AM

May 16 2018

muhlenpfordt added a comment to D12902: Update paste action on current directory and selection changes.

Hm, seems like the original intention of this change (0861dd248c01) was to adapt to the Dolphin behaviour which in fact disables the paste action for non writable folders.

May 16 2018, 8:25 AM
muhlenpfordt added inline comments to D12871: Copy raster image and SVG content to clipboard.
May 16 2018, 6:14 AM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.

All except LibreOffice Writer worked as expected (pasted the bitmap). Writer presumably used the URL since the original image was pasted.

May 16 2018, 5:59 AM
muhlenpfordt added a comment to D12902: Update paste action on current directory and selection changes.

One issue though - in the case of a read-only directory, this fact isn't very obvious. Before, there was an error message which made it explicit, but simply a disabled action might be confusing and appear to be a bug if the user doesn't realise.

May 16 2018, 5:46 AM

May 15 2018

muhlenpfordt added a reviewer for D12902: Update paste action on current directory and selection changes: Gwenview.
May 15 2018, 5:42 PM
muhlenpfordt requested review of D12902: Update paste action on current directory and selection changes.
May 15 2018, 5:40 PM
muhlenpfordt committed R320:a34497aeb799: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 15 2018, 3:11 PM
muhlenpfordt committed R320:bafc90d730f2: Scale up folder icon before creating preview overlays (authored by muhlenpfordt).
Scale up folder icon before creating preview overlays
May 15 2018, 3:08 PM
muhlenpfordt closed D12734: Scale up folder icon before creating preview overlays.
May 15 2018, 3:08 PM
muhlenpfordt updated the diff for D12871: Copy raster image and SVG content to clipboard.

Extend existing Copy action instead of adding another one

May 15 2018, 8:44 AM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.

I think we should change the current Copy action to copy the bitmap, but only in View mode (if we're in compare mode, then only the selected image). There is no ambiguity with multiple selection here.

May 15 2018, 5:39 AM

May 14 2018

muhlenpfordt added a comment to D12734: Scale up folder icon before creating preview overlays.

Nevertheless, let's check the impact of this again: https://lxr.kde.org/ident?_i=thumbForDirectory
Does not look too critical to me, and we probably tested most of the code paths.

May 14 2018, 3:30 PM
muhlenpfordt added a comment to D12871: Copy raster image and SVG content to clipboard.

Do we really need this as a separate action? IIRC the regular EditCopy action already works for pasting images to LibreOffice and Dolphin.

May 14 2018, 1:55 PM
muhlenpfordt added a reviewer for D12871: Copy raster image and SVG content to clipboard: Gwenview.

I'm not sure about the sidebar position of the menu entry. Technically it's more an image than a file operation, but where would a user expect to find this option?
Should we add a default shortcut (e.g. Ctrl++C)?

May 14 2018, 11:19 AM
muhlenpfordt requested review of D12871: Copy raster image and SVG content to clipboard.
May 14 2018, 11:17 AM
muhlenpfordt added a comment to T8123: Context menu and sidebar sometimes populated incorrectly.

I just noticed another related issue.
In View Mode showing multiple images the Image Operations menu is not updated on changing selection to another image type (raster/vector).

May 14 2018, 9:54 AM · Gwenview

May 13 2018

muhlenpfordt committed R260:e8e6d40b3d59: Cleanup code for finishing undo/redo of image operations (authored by muhlenpfordt).
Cleanup code for finishing undo/redo of image operations
May 13 2018, 11:40 AM
muhlenpfordt committed R260:aed5aa4a1c8a: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 13 2018, 11:40 AM
muhlenpfordt closed D12824: Cleanup code for finishing undo/redo of image operations.
May 13 2018, 11:40 AM
muhlenpfordt added a comment to D12824: Cleanup code for finishing undo/redo of image operations.

Thanks! Since the changes doesn't seem to affect us, let's go the proven way. ;)

May 13 2018, 10:32 AM
muhlenpfordt updated the diff for D12824: Cleanup code for finishing undo/redo of image operations.

Changed summary to be more precise

May 13 2018, 10:32 AM

May 11 2018

muhlenpfordt added a reviewer for D12824: Cleanup code for finishing undo/redo of image operations: Gwenview.

In terms of the Phabricator changes - what's the way for Gwenview?
Are there any effects when using #gwenview as reviewer?

May 11 2018, 11:02 AM
muhlenpfordt requested review of D12824: Cleanup code for finishing undo/redo of image operations.
May 11 2018, 10:59 AM
muhlenpfordt committed R260:c229ab738093: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 11 2018, 10:47 AM
muhlenpfordt committed R260:cc6f795d8891: Enable redo for undone image operations (authored by muhlenpfordt).
Enable redo for undone image operations
May 11 2018, 10:45 AM
muhlenpfordt closed D12105: Enable redo for undone image operations.
May 11 2018, 10:44 AM
muhlenpfordt added inline comments to D12105: Enable redo for undone image operations.
May 11 2018, 9:27 AM
muhlenpfordt updated the diff for D12105: Enable redo for undone image operations.

Call finishUndoJob instead of duplicate QTimer code

May 11 2018, 9:27 AM

May 8 2018

muhlenpfordt updated the diff for D12734: Scale up folder icon before creating preview overlays.

Rebase to Applications/18.04

May 8 2018, 1:37 PM
muhlenpfordt added a comment to D12734: Scale up folder icon before creating preview overlays.

Forgot to mention this...
There's a nice test application in kio for viewing a folder's preview in any desired size (created by KIO::PreviewJob): previewtest. Just enter the full path to the folder here.

May 8 2018, 9:47 AM
muhlenpfordt added a comment to D12734: Scale up folder icon before creating preview overlays.

+1, but I'd feel a bit uncomfortable (almost) self-approving my own patch (sans the qMax) here, so perhaps wait until the end of the week for any other opinions before committing.

May 8 2018, 5:41 AM

May 7 2018

muhlenpfordt abandoned D12509: Fix preview overlay for small custom folder icons.
May 7 2018, 10:31 AM
muhlenpfordt added a reviewer for D12734: Scale up folder icon before creating preview overlays: Frameworks.

Also see D12509 for Gwenview effects on this issue.

May 7 2018, 10:30 AM
muhlenpfordt requested review of D12734: Scale up folder icon before creating preview overlays.
May 7 2018, 10:27 AM
muhlenpfordt committed R260:dd0d608a2771: Fix custom folder icons using an absolute path entry (authored by muhlenpfordt).
Fix custom folder icons using an absolute path entry
May 7 2018, 7:01 AM
muhlenpfordt committed R260:e2bbbcb53ae9: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
May 7 2018, 7:01 AM
muhlenpfordt closed D12465: Fix custom folder icons using an absolute path entry.
May 7 2018, 7:01 AM
muhlenpfordt added a comment to D12465: Fix custom folder icons using an absolute path entry.

Thanks for the profound explanations. :)
I also tested with a couple of mimetype icons from various icon themes that exists in both or only one theme and did not get any different results for loadMimeTypeIcon()/loadIcon().

May 7 2018, 6:50 AM
muhlenpfordt updated the diff for D12465: Fix custom folder icons using an absolute path entry.

Update FIXED-IN version

May 7 2018, 6:50 AM

Apr 30 2018

muhlenpfordt added a comment to D12595: Fix dark HUD icons when using light system theme.

But this shouldn't be a problem for KDE 18.08.

…in case @huoni does not forget to bump the version.

Sorry not sure what you mean.

Apr 30 2018, 12:53 PM · Gwenview
muhlenpfordt committed R260:c7b70617668d: Remember width of sidebar (authored by muhlenpfordt).
Remember width of sidebar
Apr 30 2018, 11:28 AM
muhlenpfordt closed D12489: Remember width of sidebar.
Apr 30 2018, 11:28 AM
muhlenpfordt committed R260:1ba6572de4b1: Set central splitter to non collapsible (authored by muhlenpfordt).
Set central splitter to non collapsible
Apr 30 2018, 11:21 AM
muhlenpfordt closed D12561: Set central splitter to non collapsible.
Apr 30 2018, 11:21 AM

Apr 29 2018

muhlenpfordt added a comment to D12595: Fix dark HUD icons when using light system theme.

I can't compile this using Kubuntu 17.10 - seems KIconLoader::setCustomPalette() and KIconLoader::resetPalette() does not exist here ("Since 5.38"). But this shouldn't be a problem for KDE 18.08.

Apr 29 2018, 10:10 AM · Gwenview
muhlenpfordt added a comment to D9342: Make sure, a newly saved image is selected in ContextManager.
In D9342#255369, @rkflx wrote:

@bschiffner Thanks for your concerns. Please note that the ContextManager is quite delicate to work on, as can be seen by the many implications D8196 had after it landed.

I can try to work on this topic first (if Peter does not mind other patches falling behind), but surely you'll understand that pressure from comments on Phab is not a good reason to rush things in.

Apr 29 2018, 6:57 AM

Apr 28 2018

muhlenpfordt added a comment to D12458: Overhaul image resize dialog.

Sorry, I'm late...
Just noticed a small issue with the units inside the spinboxes. If I press End the cursor jumps beyond px or % - I expected it stopping after the last digit.

Apr 28 2018, 8:04 AM
muhlenpfordt added a comment to D12489: Remember width of sidebar.

Anyway, patch looks good now.
Thanks for being a practice reviewee :)

Apr 28 2018, 7:34 AM

Apr 27 2018

muhlenpfordt updated the diff for D12489: Remember width of sidebar.

Rebase to other patch

Apr 27 2018, 7:29 AM
muhlenpfordt added a dependent revision for D12561: Set central splitter to non collapsible: D12489: Remember width of sidebar.
Apr 27 2018, 7:26 AM
muhlenpfordt updated the diff for D12489: Remember width of sidebar.

Removed 0-width check

Apr 27 2018, 7:26 AM
muhlenpfordt requested review of D12561: Set central splitter to non collapsible.
Apr 27 2018, 7:24 AM
muhlenpfordt added a comment to D12509: Fix preview overlay for small custom folder icons.

I digged a little deeper in the libraries... ;)
The base icon is loaded in kio-extras function ThumbnailProtocol::thumbForDirectory().
It uses QIcon::fromTheme() to find an icon and converts this to a QPixmap.
The description for the conversion function pixmap() says:

The pixmap might be smaller than requested, but never larger.

I don't know why non absolute path icons are upscaled anyway but the docu states we can't count on the requested size.
IMO thumbForDirectory() should check and scale this base icon if needed. This will result in a upscaled base icon but higher quality overlay items.
Do you think this is the right way? Should I adapt this patch for kio-extras?

Apr 27 2018, 6:28 AM

Apr 26 2018

muhlenpfordt added a comment to D12489: Remember width of sidebar.

In that case, we can revert "Prevent save if one splitter side is collapsed", and put the above in a dependent patch?

Apr 26 2018, 11:49 AM
muhlenpfordt added a comment to D12489: Remember width of sidebar.

As we already provide the separate ViewSidebar option, the built-in functionality from QSplitter is not really needed IMO, so I'd tend to go with simply disallowing a zero width.

Apr 26 2018, 9:22 AM
muhlenpfordt added a comment to D12489: Remember width of sidebar.

Well, I've had a play around, and found the following problems:

  1. If you switch to the Start Page before quitting, the sizes aren't saved.
Apr 26 2018, 8:20 AM
muhlenpfordt updated the diff for D12489: Remember width of sidebar.

Save state before switching to start page
Prevent save if one splitter side is collapsed

Apr 26 2018, 8:20 AM