matrixion/src/Clipboard.h
2023-07-16 20:32:19 +02:00

26 lines
472 B
C++

// SPDX-FileCopyrightText: Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QObject>
#include <QQmlEngine>
#include <QString>
class Clipboard : public QObject
{
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
public:
Clipboard(QObject *parent = nullptr);
QString text() const;
void setText(QString text_);
signals:
void textChanged();
};