2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
2024-02-22 14:51:16 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2017-09-25 09:38:08 +00:00
|
|
|
|
|
|
|
#ifndef CLIPBOARD_H
|
|
|
|
#define CLIPBOARD_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QJSValue>
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
class Clipboard : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit Clipboard(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void copy(const QJSValue &keyValueMap);
|
|
|
|
QVariant paste() const;
|
|
|
|
|
|
|
|
// void copyPaletteSettingsToClipboard();
|
|
|
|
// void importPaletteSettingsFromClipboard();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLIPBOARD_H
|