copy on select

This commit is contained in:
Akash Mozumdar 2019-01-22 14:57:13 -05:00
parent df3ba5dec8
commit 4e65d29978

View File

@ -38,6 +38,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->processLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding));
connect(ui->ttCombo, qOverload<int>(&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());