Debian Codegraph @

src/ui/NhekoCursorShape.h

raw symbols SCIP
1 // SPDX-FileCopyrightText: Nheko Contributors
2 //
3 // SPDX-License-Identifier: GPL-3.0-or-later
4
5 #pragma once
6
7 // see
8 // https://stackoverflow.com/questions/27821054/how-to-change-cursor-shape-in-qml-when-mousearea-is-covered-with-another-mousear/29382092#29382092
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 };