| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#pragma once |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include <QQuickItem> |
| 11 |
|
| 12 |
class NhekoCursorShape : public QQuickItem |
| 13 |
{ |
| 14 |
Q_OBJECT |
| 15 |
QML_ELEMENT |
| 16 |
Q_PROPERTY( |
| 17 |
Qt::CursorShape cursorShape READ cursorShape WRITE setCursorShape NOTIFY cursorShapeChanged) |
| 18 |
|
| 19 |
public: |
| 20 |
explicit NhekoCursorShape(QQuickItem *parent = 0); |
| 21 |
|
| 22 |
private: |
| 23 |
Qt::CursorShape cursorShape() const; |
| 24 |
void setCursorShape(Qt::CursorShape cursorShape); |
| 25 |
|
| 26 |
Qt::CursorShape currentShape_; |
| 27 |
|
| 28 |
signals: |
| 29 |
void cursorShapeChanged(); |
| 30 |
}; |