|
mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
|
Copies transcription text to the clipboard. More...
#include <clipboardwriter.h>
Public Member Functions | |
| ClipboardWriter (QClipboard *clipboard, QObject *parent=nullptr) | |
| Creates a clipboard writer bound to the application's clipboard. | |
| bool | copy (const QString &text) |
| Copies text to the best available clipboard backend. | |
| QString | backendName () const |
| Reports the active backend name for diagnostics. | |
Copies transcription text to the clipboard.
The writer prefers KDE's system clipboard integration when available and falls back to the standard Qt clipboard API otherwise.
Definition at line 36 of file clipboardwriter.h.
|
explicit |
Creates a clipboard writer bound to the application's clipboard.
| clipboard | Non-owning pointer to the process clipboard instance. |
| parent | Optional QObject parent. |
| QString ClipboardWriter::backendName | ( | ) | const |
Reports the active backend name for diagnostics.
| bool ClipboardWriter::copy | ( | const QString & | text | ) |
Copies text to the best available clipboard backend.
| text | Text to copy. |
true when a backend accepted the copy request.