mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-06-03 17:18:24 -04:00
15 lines
285 B
C++
15 lines
285 B
C++
#include "ChatUtils.h"
|
|
|
|
#include <QClipboard>
|
|
#include <QGuiApplication>
|
|
|
|
namespace QodeAssist::Chat {
|
|
|
|
void ChatUtils::copyToClipboard(const QString &text)
|
|
{
|
|
qDebug() << "call clipboard" << text;
|
|
QGuiApplication::clipboard()->setText(text);
|
|
}
|
|
|
|
} // namespace QodeAssist::Chat
|