From 0ccffad3acd4097d240813763237b7e5371b20a2 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 4 Apr 2019 18:00:22 +0200 Subject: [PATCH] always reurning false for contains() to help test tools --- src/controls/QskFocusIndicator.cpp | 5 +++++ src/controls/QskFocusIndicator.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/controls/QskFocusIndicator.cpp b/src/controls/QskFocusIndicator.cpp index 5c0b5383..d966860e 100644 --- a/src/controls/QskFocusIndicator.cpp +++ b/src/controls/QskFocusIndicator.cpp @@ -50,6 +50,11 @@ QskFocusIndicator::~QskFocusIndicator() { } +bool QskFocusIndicator::contains( const QPointF & ) const +{ + return false; +} + void QskFocusIndicator::onFocusItemGeometryChanged() { updateFocusFrame(); diff --git a/src/controls/QskFocusIndicator.h b/src/controls/QskFocusIndicator.h index 149c5c50..5074bae2 100644 --- a/src/controls/QskFocusIndicator.h +++ b/src/controls/QskFocusIndicator.h @@ -22,6 +22,8 @@ class QSK_EXPORT QskFocusIndicator : public QskControl QskFocusIndicator( QQuickItem* parent = nullptr ); ~QskFocusIndicator() override; + bool contains( const QPointF & ) const override; + protected: void windowChangeEvent( QskWindowChangeEvent* ) override; virtual QRectF focusRect() const;