Changeset - 837bd67c8021
[Not reviewed]
add-textview
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-06-17 17:32:01
hy@ozderya.net
limit maximum block count of text view
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
mainwindow.cpp
Show inline comments
 
@@ -139,6 +139,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);
 

	
0 comments (0 inline, 0 general)