# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-06-17 17:37:46 # Node ID c27ec79b7b2ca78d4f0498abfb67e82f92f19b28 # Parent 837bd67c80217e067cedf84d025c09e7ab404950 added clear text view button diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -143,6 +143,8 @@ MainWindow::MainWindow(QWidget *parent) ui->ptTextView->setMaximumBlockCount(10000); QObject::connect(ui->cbEnableTextView, &QCheckBox::toggled, ui->ptTextView, &QWidget::setEnabled); + QObject::connect(ui->pbClearTextView, &QPushButton::clicked, + ui->ptTextView, &QPlainTextEdit::clear); // Init demo mode demoCount = 0; diff --git a/mainwindow.ui b/mainwindow.ui --- a/mainwindow.ui +++ b/mainwindow.ui @@ -415,6 +415,13 @@ + + + + Clear + + +