Closed Onetchou closed 5 months ago
Hello team! With pride, I present to you the key updates made in this Pull Request! :tada:
Totally Revamped ImageDialog Class :boom:
Outstanding changes have been made to the ImageDialog class! The getOriginPoint()
function was not contributing much so, we smartly cleaned it up. Furthermore, we've spiced up the setOriginPoint()
function so that now it simply needs a single integer parameter. Isn't that neat? :wink:
Power-Packed ImageItem Class :zap:
We've given some TLC to the ImageItem class! :heart: A new function, setOrigin()
, was introduced which will now accept two 'qreal' parameters. The updateFromHandles()
function and the updateImageAndHandles()
function also underwent a cool enhancement, both now are even more diligent and updates the m_origin
.
We also added a m_origin
member variable of QPointF type. Right in the constructor, we're making sure the m_origin
is perfectly placed at the top left of the m_boundingRect
. It will then be expertly adjusted with the xOrigin
and yOrigin
values we get from m_image
.
Fine-Tuned DraftImage struct :ok_hand:
The origin
member in DraftImage struct received an epic transformation. We've split it into two separate qreal
variables, namely xOrigin
and yOrigin
:clap:
With all these changes, expect your experience to be more streamlined and efficient. Onwards and upwards! :rocket:
This PR only affects the way Images are handled by the code. The goal is to create a dedicated tool in a future version.