mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 03:46:33 +02:00
13 lines
327 B
C++
13 lines
327 B
C++
|
#include "clipboardAdapter.h"
|
||
|
|
||
|
clipboardAdapter::clipboardAdapter(QObject *parent) :
|
||
|
QObject(parent)
|
||
|
{
|
||
|
m_pClipboard = QGuiApplication::clipboard();
|
||
|
}
|
||
|
|
||
|
void clipboardAdapter::setText(const QString &text) {
|
||
|
m_pClipboard->setText(text, QClipboard::Clipboard);
|
||
|
m_pClipboard->setText(text, QClipboard::Selection);
|
||
|
}
|