From 4e65d299784350d27376d68f337a7ba4ccc977cb Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 22 Jan 2019 14:57:13 -0500 Subject: [PATCH] copy on select --- GUI/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 485d602..6adefdf 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -38,6 +38,7 @@ MainWindow::MainWindow(QWidget *parent) : ui->processLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); connect(ui->ttCombo, qOverload(&QComboBox::activated), this, &MainWindow::ViewThread); + connect(ui->textOutput, &QPlainTextEdit::selectionChanged, [this] { if (!(QApplication::mouseButtons() & Qt::LeftButton)) ui->textOutput->copy(); }); QSettings settings(CONFIG_FILE, QSettings::IniFormat); if (settings.contains(WINDOW)) setGeometry(settings.value(WINDOW).toRect());