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:
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user