Improved detection of hover

- account for presence of fill or outline colors
- allow for a couple of pixels of slop
This commit is contained in:
Jim Evins
2015-09-08 17:53:37 -04:00
parent 81923681b3
commit b12f4a2478
7 changed files with 43 additions and 16 deletions
+2 -2
View File
@@ -88,9 +88,9 @@ void glabels::Outline::draw( QPainter* painter ) const
///
/// Create Outline path
/// Create path for testing for hover condition
///
QPainterPath glabels::Outline::path( double scale ) const
QPainterPath glabels::Outline::hoverPath( double scale ) const
{
double s = 1 / scale;