Debian Codegraph @

src/Clipboard.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 #include <QObject>
8 #include <QQmlEngine>
9 #include <QString>
10
11 class Clipboard : public QObject
12 {
13 Q_OBJECT
14 QML_ELEMENT
15 QML_SINGLETON
16
17 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
18
19 public:
20 Clipboard(QObject *parent = nullptr);
21
22 QString text() const;
23 void setText(QString text_);
24 signals:
25 void textChanged();
26 };