Added selection highlight layer to view.

This commit is contained in:
Jim Evins
2015-08-14 09:30:08 -04:00
parent 23467d8c15
commit 6a06771036
9 changed files with 952 additions and 3 deletions
+28
View File
@@ -60,6 +60,8 @@ namespace glabels
mShadowOpacity = 0.5;
mSelectedFlag = false;
mOutline = 0;
}
@@ -924,5 +926,31 @@ namespace glabels
}
///
/// Draw selection highlights
///
void LabelModelObject::drawSelectionHighlight( QPainter* painter ) const
{
painter->save();
painter->translate( mX0, mY0 );
painter->setTransform( mMatrix, true );
if ( mOutline )
{
mOutline->draw( painter );
}
foreach( Handle* handle, mHandles )
{
handle->draw( painter );
}
painter->restore();
}
}