void markupText::moveTo( const QPoint posIn ) { // Limit position to within the image QPoint limPos = limitPointToImage( posIn ); rect.translate( limPos - owner->grabOffset ); setArea(); }
void markupEllipse::moveTo( const QPoint posIn ) { // Limit position to within the image QPoint limPos = limitPointToImage( posIn ); rect.translate( limPos - owner->grabOffset ); // Update the area the ellipse now occupies setArea(); }