Ensure image View actions are disabled upon switching to Browse
AbandonedPublic

Authored by huoni on Mar 30 2018, 9:04 AM.

Details

Reviewers
None
Summary

DocumentViewController already had a function that enabled/disabled
the View actions (e.g. Zoom to Fit) based on whether View
was visible among other things. However this was never called when
switching from View to Browse.
This patch therefore connects MainWindow::viewModeChanged to this
function.

This ensures shortcuts like F for Zoom to Fit are ignored
while in Browse so they are passed to the underlying item model.

Diff Detail

Repository
R260 Gwenview
Branch
docview-shortcuts (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
huoni requested review of this revision.Mar 30 2018, 9:04 AM
huoni created this revision.
huoni abandoned this revision.Apr 9 2018, 4:03 AM

Duplicate

rkflx added a subscriber: rkflx.Apr 9 2018, 8:54 AM

Duplicate

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

huoni added a comment.Apr 9 2018, 10:49 AM

Duplicate

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

D11633

rkflx added a comment.Apr 9 2018, 11:30 AM

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

D11633

Oops ;) I guess I did not make the connection because you retitled the other Diff.

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

D11633

Oops ;) I guess I did not make the connection because you retitled the other Diff.

Occurred to me that you may have wasted time reviewing this patch. Apologies for that!

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

D11633

Oops ;) I guess I did not make the connection because you retitled the other Diff.

Occurred to me that you may have wasted time reviewing this patch. Apologies for that!

Oh no, not at all ;) Your patches are next up for review in Gwenview (but I also need to review some things in Spectacle first). At least you won't get bored in the meantime with CMYK and the statusbar…

At least you won't get bored in the meantime with CMYK and the statusbar…

I don't think there's ever any danger of boredom :)
I'm also tackling https://bugs.kde.org/show_bug.cgi?id=207802

Cool! Feel free to open a task if you want to discuss a UI design you came up with before implementing something, and look at how other apps are solving this (e.g. Krita, but surely you'll find more, so we can "borrow" the best design for Gwenview…)

Ah, sorry. Thought you meant to enter a percentage for the zoom value. Just ignore my comment. Too many reviews today…