diff options
author | Laszlo Papp <lpapp@kde.org> | 2012-04-06 13:29:00 +0300 |
---|---|---|
committer | Denis Shienkov <scapig@yandex.ru> | 2012-04-06 13:24:25 +0200 |
commit | a241f6c3bea1e13c277c170a522976c53aab550d (patch) | |
tree | 67677e3c72a8d5a03b86426219735bb02ef74318 /examples/terminal/settingsdialog.cpp | |
parent | c8e7ae199d13603315c5e8bb3f25695363c88f5c (diff) | |
download | qtserialport-a241f6c3bea1e13c277c170a522976c53aab550d.tar.gz |
Show "Data bits: 8" in the settings of the terminal example by default
It is probably better to show this value in the settings for the data bits since
it is probably the most common usage out there. This way 8N1 would be available
by default. Therefore, in most cases while testing or debugging the qtserialport
codebase itself, it is not even needed to go to the settings, just press
connect.
Change-Id: I2cbe2e364ef488693c5687edf7658aa722e43a78
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <scapig@yandex.ru>
Diffstat (limited to 'examples/terminal/settingsdialog.cpp')
-rw-r--r-- | examples/terminal/settingsdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/terminal/settingsdialog.cpp b/examples/terminal/settingsdialog.cpp index 08529d8..c3ca794 100644 --- a/examples/terminal/settingsdialog.cpp +++ b/examples/terminal/settingsdialog.cpp @@ -61,6 +61,7 @@ void SettingsDialog::fillPortsParameters() ui->dataBitsBox->addItem(QLatin1String("6"), static_cast<int>(SerialPort::Data6)); ui->dataBitsBox->addItem(QLatin1String("7"), static_cast<int>(SerialPort::Data7)); ui->dataBitsBox->addItem(QLatin1String("8"), static_cast<int>(SerialPort::Data8)); + ui->dataBitsBox->setCurrentIndex(3); // fill parity ui->parityBox->addItem(QLatin1String("None"), static_cast<int>(SerialPort::NoParity)); |