diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-11 01:50:36 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-11 01:50:36 +0200 |
commit | 0d4046de3904e7dfd190a05218e357e93dc8d058 (patch) | |
tree | 2ea1fa692e9a9ca98faf097780cf3c0e9d32026e /gui/pages/LogPage.cpp | |
parent | 24698fe85fe85e21881fa69503c68b33e97775ea (diff) | |
download | MultiMC-0d4046de3904e7dfd190a05218e357e93dc8d058.tar MultiMC-0d4046de3904e7dfd190a05218e357e93dc8d058.tar.gz MultiMC-0d4046de3904e7dfd190a05218e357e93dc8d058.tar.lz MultiMC-0d4046de3904e7dfd190a05218e357e93dc8d058.tar.xz MultiMC-0d4046de3904e7dfd190a05218e357e93dc8d058.zip |
Add clear and copy buttons to the log page.
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 |