mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
26 lines
472 B
C++
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();
|
|
};
|