git-svn-id: svn://db.shs.com.ru/libs@482 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -91,7 +91,16 @@ QAD::IODevice IODeviceEditDialog::value() const {
|
||||
|
||||
|
||||
void IODeviceEditDialog::setValue(const QAD::IODevice & d) {
|
||||
#if QT_VERSION >= 0x050000
|
||||
ui->comboType->setCurrentText(d.prefix);
|
||||
#else
|
||||
for (int i = 0; i < ui->comboType->count(); ++i) {
|
||||
if (ui->comboType->itemText(i) == d.prefix) {
|
||||
ui->comboType->setCurrentIndex(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
for (int i = 0; i < ui->comboMode->count(); ++i)
|
||||
if (ui->comboMode->itemData(i).toInt() == d.mode) {
|
||||
ui->comboMode->setCurrentIndex(i);
|
||||
|
||||
Reference in New Issue
Block a user