Simplifies code and also grab just one pixel instead of the entire screen.
BUG: 382261
FIXED-IN: 5.10.4
davidedmundson |
Plasma |
Simplifies code and also grab just one pixel instead of the entire screen.
BUG: 382261
FIXED-IN: 5.10.4
Picks correct color on both screens and also seems to pick fine with device pixel ratio (plasmashell doesn't use it but plasmoidviewer does)
Code from QColorDialog
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Can you validate the pixmap is not null before we access the pixel data, just in case grabwindow fails.