# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-06-17 16:40:30 # Node ID 75952bda0a0ed74d6df2614642890bd532817592 # Parent 8c8c522ddb18384d4bfa5b89c8e09f6f4cd1bdc3 implemented enable/disable text view diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -136,6 +136,11 @@ MainWindow::MainWindow(QWidget *parent) selectNumberFormat(NumberFormat_uint8); } + // init text view + ui->ptTextView->setEnabled(ui->cbEnableTextView->isChecked()); + QObject::connect(ui->cbEnableTextView, &QCheckBox::toggled, + ui->ptTextView, &QWidget::setEnabled); + // Init demo mode demoCount = 0; demoTimer.setInterval(100);