Diffusion KMag e410d659592c

Fix runtime warning about using QPixmap::grabWindow. Not perfect, but not worse.

Authored by dfaure on May 13 2016, 12:55 PM.

Description

Fix runtime warning about using QPixmap::grabWindow. Not perfect, but not worse.

Details

Auditors
whiting
Committed
dfaureMay 13 2016, 12:55 PM
Parents
R428:b041bcad8770: Use QStringLiteral + new connect api
Branches
Unknown
Tags
Unknown
whiting accepted this commit.May 12 2017, 8:37 PM
whiting added a subscriber: whiting.

Looks like this is already in kmag master. I'll see if I can sort out how to decide which screen to grab from.

All concerns with this commit have now been addressed.May 12 2017, 8:37 PM

Hmm QScreen::grabWindow is already grabbing pixmap data from both screens here. I wonder why it needs the QScreen object at all. At any rate it seems to work fine.

David did you notice anything lacking here?

I didn't actually test this with multiple screens.