Feed Advanced Search

Aug 1 2018

muhlenpfordt updated the diff for D9342: Make sure, a newly saved image is selected in ContextManager.

Removed unneeded parts from old diff

Aug 1 2018, 6:31 PM
muhlenpfordt added a comment to D9342: Make sure, a newly saved image is selected in ContextManager.
In D9342#301838, @rkflx wrote:

Oops, I think there was a misunderstanding. P250 was against the stable branch, not against your patch.

Aug 1 2018, 6:31 PM
muhlenpfordt added a comment to D13249: Refine behaviour for dragging modified images to external applications.

We might have to research what's the maximum allowed size, and add a check to Gwenview. (Would you like to work on that? Not really urgent, though.)

Aug 1 2018, 2:50 PM
muhlenpfordt added a comment to D14485: [Draft] Set zoom cursor in edit tools while Ctrl is pressed.

Thus, can we work on this later, given that it's not quite ready yet and it's for master anyway?

Aug 1 2018, 2:25 PM · Gwenview
muhlenpfordt added a comment to D9342: Make sure, a newly saved image is selected in ContextManager.
In D9342#301657, @rkflx wrote:

Okay, here's my patch (don't laugh, I know it looks fishy): P250

Aug 1 2018, 1:30 PM
muhlenpfordt updated the diff for D9342: Make sure, a newly saved image is selected in ContextManager.

Added modifications from P250 by rkflx

Aug 1 2018, 1:29 PM

Jul 31 2018

muhlenpfordt added a comment to D13249: Refine behaviour for dragging modified images to external applications.
  • How to fix the issue in kdeclarative? Or report a bug and hope for the best?
Jul 31 2018, 2:44 PM
muhlenpfordt added a comment to D13249: Refine behaviour for dragging modified images to external applications.

I'll take a look at the imagedata setting. Setting one special mime type may help as first workaround.

Jul 31 2018, 8:55 AM
muhlenpfordt added a comment to D13249: Refine behaviour for dragging modified images to external applications.

Can anybody confirm? If this is really an issue, obviously it won't be acceptable to ship Gwenview in such a state for 18.08, since setting the Plasma wallpaper by dragging to the desktop is a feature often asked for.

Jul 31 2018, 6:32 AM

Jul 30 2018

muhlenpfordt added a project to D14485: [Draft] Set zoom cursor in edit tools while Ctrl is pressed: Gwenview.

This version does its own cursor handling inside the edit tools.
I first tried it by ignoring/accepting the mouse and key events and let AbstractImageView show the magnifying glass (see preview Diff 38774), but for crop tool it still doesn't work in all situations. Sometimes an event has to be accepted for one action but the same should be ignored to do something in AbstractImageView.

Jul 30 2018, 1:31 PM · Gwenview
muhlenpfordt requested review of D14485: [Draft] Set zoom cursor in edit tools while Ctrl is pressed.
Jul 30 2018, 1:26 PM · Gwenview
muhlenpfordt accepted D14475: Add shortcut for Red Eye Reduction tool.

Looks good. I found no other usage of (Shift)+E, except in browse mode - but this tool/action is disabled there anyway.
It's also no KStandardAction, so we can set the shortcut without respecting any preexisting.

Jul 30 2018, 9:31 AM
muhlenpfordt committed R260:20cc14c41b64: Merge remote-tracking branch 'origin/Applications/18.08' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.08'
Jul 30 2018, 9:09 AM
muhlenpfordt committed R260:e61ce1e2886c: Keep crop handles inside selection rectangle (authored by muhlenpfordt).
Keep crop handles inside selection rectangle
Jul 30 2018, 9:07 AM
muhlenpfordt closed D14396: Keep crop handles inside selection rectangle.
Jul 30 2018, 9:07 AM

Jul 27 2018

muhlenpfordt added a comment to D14407: Improve wording for red eye reduction.

I'm not a reliable source for english wording... ;)
In german I would always expect a plural version, i.e. "Reduce Red Eyes" (Rote Augen reduzieren) - even if I edit one at a time.
But I think "Red Eye" as short version for "Red Eye Effect" is ok.
I've also found "Correct Red Eye(s)" or "Fix Red Eye(s)".

Jul 27 2018, 6:34 AM
muhlenpfordt accepted D14406: Remove crosshair cursor from crop tool.

I tested a couple of situations in crop tool witch your first patch but never noticed the cross hair cursor until you pointed it out.

Jul 27 2018, 6:14 AM
muhlenpfordt added a watcher for Gwenview: muhlenpfordt.
Jul 27 2018, 5:39 AM

Jul 26 2018

muhlenpfordt added a comment to D14324: Propagate unused mouse press events in edit tools.

But I'm stuck with resetting the cursor since the mouseReleaseEvent seems to get lost for Ctrl+click - that's why the ClosedHandCursor still shows up.

Found the reason for this. :)
The previous mousePressEvent needs to be accepted somewhere (for zooming in AbstractImageView), otherwise the subsequent mouseReleaseEvent is not triggered.

Jul 26 2018, 8:48 AM
muhlenpfordt requested review of D14396: Keep crop handles inside selection rectangle.
Jul 26 2018, 7:57 AM
muhlenpfordt added a comment to D14386: Fix crosshair cursor not showing in red eye reduction tool.

Using Ctrl+Left-/Right-Click changes to the closed hand cursor - but that's what you noted before.
Anything else works good. :)

Jul 26 2018, 7:24 AM

Jul 25 2018

muhlenpfordt committed R260:0279e35ac1e4: Merge remote-tracking branch 'origin/Applications/18.08' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.08'
Jul 25 2018, 3:10 PM
muhlenpfordt committed R260:152b591642c7: Propagate unused mouse press events in edit tools (authored by muhlenpfordt).
Propagate unused mouse press events in edit tools
Jul 25 2018, 3:07 PM
muhlenpfordt closed D14324: Propagate unused mouse press events in edit tools.
Jul 25 2018, 3:07 PM
muhlenpfordt committed R260:08511b030a32: Reactivate size slider in Red Eye Reduction tool (authored by muhlenpfordt).
Reactivate size slider in Red Eye Reduction tool
Jul 25 2018, 3:06 PM
muhlenpfordt closed D14329: Reactivate size slider in Red Eye Reduction tool.
Jul 25 2018, 3:06 PM
muhlenpfordt accepted D14346: Always set transformation mode when setting zoom in image scaler.

Works good and I can't spot any visual difference. :)

Jul 25 2018, 11:46 AM
muhlenpfordt added a comment to D14324: Propagate unused mouse press events in edit tools.

Ctrl zooms nicely too, but would it be too much to ask to show the correct cursor, i.e. the magnifying glass? Also, for Red Eye Reduction, the cursor seems to be stuck on ClosedHandCursor. Perhaps this is an issue of propagating the key press events?

I got this partly working by ignoring some more events in the right places and let AbstractImageView do the cursor work.
But I'm stuck with resetting the cursor since the mouseReleaseEvent seems to get lost for Ctrl+click - that's why the ClosedHandCursor still shows up.
I think this is a bit more complicated and maybe better go to a different patch.

Jul 25 2018, 9:51 AM
muhlenpfordt updated the diff for D14324: Propagate unused mouse press events in edit tools.

Removed filtering Qt::ShiftModifier

Jul 25 2018, 9:51 AM
muhlenpfordt added inline comments to D14329: Reactivate size slider in Red Eye Reduction tool.
Jul 25 2018, 7:10 AM
muhlenpfordt updated the diff for D14329: Reactivate size slider in Red Eye Reduction tool.

Use valueChanged signal
Set explicit max value for spinbox too

Jul 25 2018, 7:10 AM

Jul 24 2018

muhlenpfordt requested review of D14329: Reactivate size slider in Red Eye Reduction tool.
Jul 24 2018, 11:08 AM
muhlenpfordt committed R260:061369381834: Merge remote-tracking branch 'origin/Applications/18.08' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.08'
Jul 24 2018, 10:19 AM
muhlenpfordt committed R260:20ff80871670: Propagate unused mouse wheel events in edit tools (authored by muhlenpfordt).
Propagate unused mouse wheel events in edit tools
Jul 24 2018, 10:12 AM
muhlenpfordt closed D14286: Propagate unused mouse wheel events in edit tools.
Jul 24 2018, 10:12 AM
muhlenpfordt added a reviewer for D14324: Propagate unused mouse press events in edit tools: Gwenview.
Jul 24 2018, 9:59 AM
muhlenpfordt requested review of D14324: Propagate unused mouse press events in edit tools.
Jul 24 2018, 9:58 AM
muhlenpfordt added a comment to D14286: Propagate unused mouse wheel events in edit tools.

Making Ctrl-right/left click and middle click work for tools too (where it makes sense) is not that easy, is it?

Jul 24 2018, 6:52 AM

Jul 23 2018

muhlenpfordt updated the test plan for D14286: Propagate unused mouse wheel events in edit tools.
Jul 23 2018, 3:06 PM
muhlenpfordt added a comment to D14284: Display full path of image on main window.

display the active image name, if you have more than one image in the view mode

Do you mean that in Compare mode the window title should change when clicking on another image? For me this is already the case without your patch.

Interesting, in KDE Neon 5.13 (Plasma 5.13.2, KDE Framework 5.47.0, Qt 5.11.0) yes it works without my patch. In my working Linux (OpenSuse Leap15.0, Plasma 5.12.5, KDE Framework 5.45.0, Qt 5.9.4) is it doesn't work without my patch.

Jul 23 2018, 9:27 AM
muhlenpfordt requested review of D14286: Propagate unused mouse wheel events in edit tools.
Jul 23 2018, 7:58 AM
muhlenpfordt added a comment to D14269: Fix image smoothing sometimes not getting applied.

Refactoring sneak peek (headed for master, will post a Diff once the bug fix landed), which still needs testing and a commit message: P243

Jul 23 2018, 7:04 AM

Jul 19 2018

muhlenpfordt added a comment to D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.

That's how merging works: Every commit from stable will (and should) be present in master

Jul 19 2018, 12:00 PM
muhlenpfordt added a comment to D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.

First I landed to stable as usual:

$ git checkout my-branch
$ arc land --hold --onto Applications/18.08
$ git push -- origin ...:Applications/18.08

Then tried to merge into master and got something like this:

$ git checkout master
$ git merge -Xours origin/Applications/18.08
$ git log
commit 2a375e0165ae1d666c2e62f4c22b71b7c53574f7 (HEAD -> master)
Merge: 8cbc6377 e6026082
Author: Peter Mühlenpfordt <devel@ukn8.de>
Date:   Thu Jul 19 13:02:23 2018 +0200
    Merge remote-tracking branch 'origin/Applications/18.08'
Jul 19 2018, 11:20 AM
muhlenpfordt added a comment to D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.

Was that ok how I pushed this to master?
There are two different GIT_SILENT ... commits in Applications/18.08 and master, which I got both after using git merge -Xours origin/Applications/18.08.
Now I used git cherry-pick <commit> to get only this commit.
Do we have to use this from now on while 18.08 lives?

Jul 19 2018, 10:11 AM
muhlenpfordt committed R260:8cbc63775b99: Center zoom to cursor position for zoom In/Out, Fill and 100% actions (authored by muhlenpfordt).
Center zoom to cursor position for zoom In/Out, Fill and 100% actions
Jul 19 2018, 9:56 AM
muhlenpfordt committed R260:e60260826f77: Center zoom to cursor position for zoom In/Out, Fill and 100% actions (authored by muhlenpfordt).
Center zoom to cursor position for zoom In/Out, Fill and 100% actions
Jul 19 2018, 9:37 AM
muhlenpfordt closed D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.
Jul 19 2018, 9:37 AM
muhlenpfordt updated the diff for D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.

Increase readability of zoomIn/zoomOut functions

Jul 19 2018, 6:03 AM

Jul 18 2018

muhlenpfordt added a comment to D14202: Change default shortcut for "Zoom To Fit" action.

The new shortcut is just a suggestion. If you wish to use another or even any better solution to a possible conflict, I can surely update this patch.

Jul 18 2018, 10:09 AM
muhlenpfordt requested review of D14202: Change default shortcut for "Zoom To Fit" action.
Jul 18 2018, 10:08 AM
muhlenpfordt requested review of D14201: Set system default shortcut Ctrl+0 for "Actual Size" action.
Jul 18 2018, 10:08 AM · Frameworks
muhlenpfordt added inline comments to D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.
Jul 18 2018, 7:32 AM

Jul 17 2018

muhlenpfordt added a comment to D14094: Add shortcut Shift+F for zoom option "Fill".

Just found this wish for adding Ctrl+0 to KStandardAction::ActualSize.
https://bugs.kde.org/show_bug.cgi?id=305702

Jul 17 2018, 11:15 AM
muhlenpfordt added a reviewer for D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions: Gwenview.

Zooming in/out in synchronized compare mode looks a bit strange sometimes. But this did not change by this patch.

Jul 17 2018, 9:35 AM
muhlenpfordt requested review of D14181: Center zoom to cursor position for zoom In/Out, Fill and 100% actions.
Jul 17 2018, 9:27 AM
muhlenpfordt committed R260:61536e6dee50: Merge remote-tracking branch 'origin/Applications/18.08' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.08'
Jul 17 2018, 6:32 AM
muhlenpfordt committed R260:d117c51354c0: Remove superfluous zoom action initialization (authored by muhlenpfordt).
Remove superfluous zoom action initialization
Jul 17 2018, 6:32 AM

Jul 16 2018

muhlenpfordt accepted D14103: Add mouse shortcut for Fill and adapt docbook.

Tested with the updated master and it works great now.
(Centering to cursor on Fill to be done.)

Jul 16 2018, 5:47 PM · Documentation
muhlenpfordt committed R260:945c8a7a8d0b: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation (authored by muhlenpfordt).
Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation
Jul 16 2018, 3:19 PM
muhlenpfordt closed D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.
Jul 16 2018, 3:19 PM
muhlenpfordt added a comment to D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

However for Fill there is a decision to be made where to pan to. For some cases (e.g. zooming out) this already works okay, but for zooming in from the minimum zoom level it does not:

Jul 16 2018, 3:13 PM
muhlenpfordt updated the diff for D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

Map cursor position to current image
Limit cursor centering to image view

Jul 16 2018, 11:44 AM
muhlenpfordt added a comment to D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.
  • In Compare mode it does not work right for every document. Adding mapFromScene fixes it for me.
Jul 16 2018, 11:44 AM
muhlenpfordt committed R260:9b898af627ab: Add shortcut Shift+F for zoom option "Fill" (authored by muhlenpfordt).
Add shortcut Shift+F for zoom option "Fill"
Jul 16 2018, 7:41 AM
muhlenpfordt closed D14094: Add shortcut Shift+F for zoom option "Fill".
Jul 16 2018, 7:41 AM
muhlenpfordt added a comment to D14094: Add shortcut Shift+F for zoom option "Fill".

Well, in general silently breaking other apps is not nice. In this case there does not seem to be lots of active development, so perhaps just posting a Diff and tagging the contributors of the last few patches (Kai and Andreas) is better than opening a bug or asking others to solve the issue for us. (Let me know if I should help, IOW if I was asking too much from you ;)

Jul 16 2018, 7:35 AM
muhlenpfordt added inline comments to D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.
Jul 16 2018, 7:28 AM
muhlenpfordt updated the diff for D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

Center 100% zoom to current cursor position

Jul 16 2018, 7:27 AM
muhlenpfordt added a comment to D14103: Add mouse shortcut for Fill and adapt docbook.

Sadly the centering to mouse position when zooming to 100% gets lost with our combination.

Interesting. Is this really working for you without the patches? For me, even middle-clicking with a KDE4-based Gwenview centers instead of respecting the mouse position.

Jul 16 2018, 7:26 AM · Documentation

Jul 15 2018

muhlenpfordt added a comment to D14103: Add mouse shortcut for Fill and adapt docbook.

Code looks good to me.
Sadly the centering to mouse position when zooming to 100% gets lost with our combination.
Should I add this to DocumentView::toggleZoomTo...()? It will work for both shortcut (maybe surprising for users?) and click.
Or add an argument to pass the mouse position only for click events?

Jul 15 2018, 11:51 AM · Documentation

Jul 14 2018

muhlenpfordt added a comment to D14094: Add shortcut Shift+F for zoom option "Fill".

Would it be too much to ask to solve this, e.g. by removing the conflicting standard shortcut?

Jul 14 2018, 9:37 AM
muhlenpfordt updated the diff for D14094: Add shortcut Shift+F for zoom option "Fill".

Remove shortcut for "100%"

Jul 14 2018, 9:36 AM
muhlenpfordt added a comment to D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

I think there are two reasons that make it necessary to move the toggling code to separate slots:

  • DocumentView::setZoomToFit/Fill() is used from various locations where the on parameter is important
  • The parameter checked of the triggered signal and the checked state of the zoom actions are unusable since they're always true when the triggered slot is called - this seems to be an effect of the QActionGroup in ZoomWidget linking all zoom buttons.
Jul 14 2018, 9:25 AM
muhlenpfordt updated the diff for D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

Move toggling code to separate slots

Jul 14 2018, 9:25 AM

Jul 13 2018

muhlenpfordt planned changes to D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.
Jul 13 2018, 4:18 PM
muhlenpfordt added inline comments to D14094: Add shortcut Shift+F for zoom option "Fill".
Jul 13 2018, 12:49 PM
muhlenpfordt added a comment to D14094: Add shortcut Shift+F for zoom option "Fill".

I should triage more bugs if this seems to result in quick fixes ;)

Jul 13 2018, 12:23 PM
muhlenpfordt updated the diff for D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.

Removed SignalBlocker include

Jul 13 2018, 9:56 AM
muhlenpfordt added a reviewer for D14094: Add shortcut Shift+F for zoom option "Fill": Gwenview.
Jul 13 2018, 9:08 AM
muhlenpfordt added a reviewer for D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation: Gwenview.
Jul 13 2018, 9:08 AM
muhlenpfordt requested review of D14094: Add shortcut Shift+F for zoom option "Fill".
Jul 13 2018, 9:06 AM
muhlenpfordt requested review of D14093: Toggle between zoom options "Fit"/"Fill" and "100%" on multiple activation.
Jul 13 2018, 9:03 AM

Jul 9 2018

muhlenpfordt committed R260:4f90623109b1: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
Jul 9 2018, 1:40 PM
muhlenpfordt committed R260:49a52e748904: Fix QFileDialog::selectUrl() setting initial directory (authored by muhlenpfordt).
Fix QFileDialog::selectUrl() setting initial directory
Jul 9 2018, 1:39 PM
muhlenpfordt closed D13795: Fix QFileDialog::selectUrl() setting initial directory.
Jul 9 2018, 1:39 PM
muhlenpfordt added a comment to D13795: Fix QFileDialog::selectUrl() setting initial directory.
  • This causes FileOpen to not start in the current directory but in Gwenviews initial or last set path. In addition, due to adding StripTrailingSlash, D9886 caused the file dialog to select the last subfolder as a file instead of entering it. Both problems can be fixed by using QFileDialog::setDirectoryUrl() instead of QFileDialog::selectUrl().
Jul 9 2018, 11:23 AM
muhlenpfordt updated the summary of D13795: Fix QFileDialog::selectUrl() setting initial directory.
Jul 9 2018, 11:23 AM
muhlenpfordt accepted D13894: Reset zoom cursor more reliably.

Works perfectly now. No more issues found. :)

Jul 9 2018, 10:59 AM
muhlenpfordt added a comment to D13795: Fix QFileDialog::selectUrl() setting initial directory.

Thanks for diving that deep into this! Looks like a hard piece of work.
Ok with the commit message / comment? Better suggestions always welcome. ;)

Jul 9 2018, 8:20 AM
muhlenpfordt updated the diff for D13795: Fix QFileDialog::selectUrl() setting initial directory.

Added comment for Save As dialog

Jul 9 2018, 8:20 AM
muhlenpfordt added a comment to D13894: Reset zoom cursor more reliably.

I found some small issues:

  • Pressing Ctrl outside and moving the mouse to Gwenview does not update the cursor (AbstractImageView::focusInEvent() is triggered but mControlKeyIsDown is false).
  • Switching from Browse to View Mode with Ctrl+Return does not display the magnifying glass (not really important... ;) ).

Maybe these could be fixed by something like this?

bool newState = QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier;
if (newState != d->mControlKeyIsDown) {
    d->mControlKeyIsDown = newState;
    updateCursor();
}
Jul 9 2018, 7:17 AM

Jun 29 2018

muhlenpfordt added a reviewer for D13795: Fix QFileDialog::selectUrl() setting initial directory: Gwenview.

The behaviour of QFileDialog::selectUrl() seems to have changed between Qt 5.9.1 and Qt 5.9.5.
On an older Kubuntu 17.10 system the initial path is set by QFileDialog::selectUrl() but not on Kubuntu 18.04.
The changed code also works with the older library version.

Jun 29 2018, 10:46 AM
muhlenpfordt requested review of D13795: Fix QFileDialog::selectUrl() setting initial directory.
Jun 29 2018, 10:41 AM
muhlenpfordt committed R260:d32e553bf710: Merge remote-tracking branch 'origin/Applications/18.04' (authored by muhlenpfordt).
Merge remote-tracking branch 'origin/Applications/18.04'
Jun 29 2018, 7:30 AM
muhlenpfordt committed R260:47c66913c6ec: Enable AutoErrorHandling for rename job (authored by muhlenpfordt).
Enable AutoErrorHandling for rename job
Jun 29 2018, 7:25 AM
muhlenpfordt closed D13754: Enable AutoErrorHandling for rename job.
Jun 29 2018, 7:25 AM

Jun 28 2018

muhlenpfordt added a comment to D13754: Enable AutoErrorHandling for rename job.

The only thing I'm not sure about is showErrorMessage(): Why did it work in KDE 4, but does not work anymore? Your new code is fine, but maybe we also have a problem in KF5, which obviously we should try to fix (or we might run into it again and again… – e.g. did you check GVPart::showJobError?).

Jun 28 2018, 7:45 AM

Jun 27 2018

muhlenpfordt added inline comments to D13754: Enable AutoErrorHandling for rename job.
Jun 27 2018, 11:01 AM
muhlenpfordt updated the diff for D13754: Enable AutoErrorHandling for rename job.

Remove showErrorMessage() call

Jun 27 2018, 11:01 AM