# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-07-05 21:45:28 # Node ID e0b4536d2f3b2f28db3db7b6a9d844729102da45 # Parent 1c804a335df5e32387b64fa27c7bbd99f0e8adbc do not disable textview widget so that user can select/copy diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -147,11 +147,8 @@ MainWindow::MainWindow(QWidget *parent) } // init text view - ui->ptTextView->setEnabled(ui->cbEnableTextView->isChecked()); // TODO: does this work in binary mode? (no new lines) ui->ptTextView->setMaximumBlockCount(10000); - QObject::connect(ui->cbEnableTextView, &QCheckBox::toggled, - ui->ptTextView, &QWidget::setEnabled); QObject::connect(ui->pbClearTextView, &QPushButton::clicked, ui->ptTextView, &QPlainTextEdit::clear);