Commit Graph

5 Commits

Author SHA1 Message Date
Matthew Hodgson
0be0d87a19 Merge branch 'master' into master 2017-04-30 18:58:38 +01:00
Konstantinos Sideris
e6fd80f87f Fix MainWindow being out of focus when the fullscreen overlay is closed
That was probably a Linux specific issue or my mouse is buggy.
2017-04-30 13:00:11 +03:00
Matthew Hodgson
46b6d943a2 restore macOS menubar after viewing fullscreen image 2017-04-30 02:27:07 +01:00
Matthew Hodgson
768a2366e6 workaround macOS weirdness where ImageOverlayDialog shows tiny image
ImageOverlayDialog::paintEvent was being called three times:
width and height is  76 ,  30
width and height is  1460 ,  1200
width and height is  1460 ,  1200

Presumably the first one is before the fullscreen kicks in.  However, this meant that the image got squashed and never recovered.
Therefore this doesn't destroy the original image but keeps a copy for the resized one.
I'm slightly surprised that we actually have to scale the image though - can't Qt do this for you, if you tell it to draw the image into the right sized container?
2017-04-30 02:10:37 +01:00
Konstantinos Sideris
57332553c4 Add full screen overlay for image display 2017-04-30 01:55:10 +03:00