diff options
Diffstat (limited to 'gui/pages/LogPage.cpp')
-rw-r--r-- | gui/pages/LogPage.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/pages/LogPage.cpp b/gui/pages/LogPage.cpp index a9e32cc2..65b84b03 100644 --- a/gui/pages/LogPage.cpp +++ b/gui/pages/LogPage.cpp @@ -73,6 +73,18 @@ void LogPage::on_btnPaste_clicked() delete paste; } +void LogPage::on_btnCopy_clicked() +{ + auto text = ui->text->toPlainText(); + QClipboard *clipboard = QApplication::clipboard(); + clipboard->setText(text); +} + +void LogPage::on_btnClear_clicked() +{ + ui->text->clear(); +} + void LogPage::writeColor(QString text, const char *color, const char * background) { // append a paragraph |