matrixion/src/Clipboard.h

24 lines
471 B
C
Raw Permalink Normal View History

2021-04-29 23:52:55 +03:00
// SPDX-FileCopyrightText: 2021 Nheko Contributors
// SPDX-FileCopyrightText: 2022 Nheko Contributors
2021-04-29 23:52:55 +03:00
//
// SPDX-License-Identifier: GPL-3.0-or-later
2021-04-29 22:46:49 +03:00
#pragma once
#include <QObject>
#include <QString>
class Clipboard : public QObject
{
2021-09-18 01:22:33 +03:00
Q_OBJECT
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
2021-04-29 22:46:49 +03:00
public:
2021-09-18 01:22:33 +03:00
Clipboard(QObject *parent = nullptr);
2021-04-29 22:46:49 +03:00
2021-09-18 01:22:33 +03:00
QString text() const;
void setText(QString text_);
2021-04-29 22:46:49 +03:00
signals:
2021-09-18 01:22:33 +03:00
void textChanged();
2021-04-29 22:46:49 +03:00
};