Skip to content
Commit 60f01435 authored by Hennadii Chernyshchyk's avatar Hennadii Chernyshchyk Committed by Méven Car
Browse files

Cleanup QuickEditor code

* Remove reference for trivially-copyable types.
* Add reference for non-trivially-copyable types.
* Remove extra variables.
* Use QTransform::fromScale (it faster: https://doc.qt.io/qt-5/qtransform.html#fromScale).
* event->pos() assigned to mMousePos, so just use mMousePos instead.
* Remove painter.end() calls (there is no need to call it manually: https://doc.qt.io/qt-5/qpainter.html#end).
* Do not use else after return.
* Return earlier and put return on the next line because eacceptSelection() returns void.
* Store QScreen directly to avoid finding it every iteration.
* Use QMap for mScreenToDpr.
* Use constant iterators.
* Fix headers style.
parent a2b8d625
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment