Simplify QuickEditor
In this PR I did some refactoring:
- Replaced
QRegion mScreenRegion
withQRect mScreensRect
to avoid extra conversion (QRegion
is never directly used needed) and calledpreparePaint()
earlier to reusemScreensRect
for getting pixmap size (this . - Moved some complicated stuff from constructor to separate functions.
- Changed header formatting in accordance with the used style in new files.
Moved reusable lambdas to static functions.-
Added support for screen geometry with negative coordinates. This was is not a problem on X11, but it is possible on Wayland and Windows.Will send in a separate PR. - Passed WindowFlags to the QWidget constructor directly.
I tested changes on X11 and Wayland.
Edited by Hennadii Chernyshchyk