2018-07-02 08:08:38 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef QSK_INPUT_GRABBER_H
|
|
|
|
#define QSK_INPUT_GRABBER_H 1
|
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
|
|
|
#include "QskControl.h"
|
|
|
|
|
|
|
|
class QskInputGrabber: public QskControl
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
using Inherited = QskControl;
|
|
|
|
|
|
|
|
public:
|
|
|
|
QskInputGrabber( QQuickItem* parent = nullptr );
|
2018-07-31 17:32:25 +02:00
|
|
|
~QskInputGrabber() override;
|
2018-07-02 08:08:38 +02:00
|
|
|
|
|
|
|
virtual QRectF grabberRect() const;
|
|
|
|
virtual bool isBlocking( const QPointF& ) const;
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void updateGeometry();
|
|
|
|
|
|
|
|
protected:
|
2018-07-31 17:32:25 +02:00
|
|
|
bool event( QEvent* ) override;
|
2018-07-02 08:08:38 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|