git-svn-id: svn://db.shs.com.ru/libs@485 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -59,7 +59,7 @@ void IODeviceEdit::setReadOnly(bool yes) {
|
||||
|
||||
|
||||
void IODeviceEdit::buttonDlg_clicked() {
|
||||
QAD::IODevice d = dlg->exec(dev);
|
||||
QAD::IODevice d = dlg->getIODevice(dev);
|
||||
if (!d.isValid()) return;
|
||||
setDevice(d);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ void IODeviceEditDialog::on_comboType_currentIndexChanged(int index) {
|
||||
}
|
||||
|
||||
|
||||
QAD::IODevice IODeviceEditDialog::exec(const QAD::IODevice & d) {
|
||||
QAD::IODevice IODeviceEditDialog::getIODevice(const QAD::IODevice & d) {
|
||||
setValue(d);
|
||||
if (QDialog::exec() != QDialog::Accepted)
|
||||
return QAD::IODevice();
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
explicit IODeviceEditDialog(QWidget * parent = 0);
|
||||
~IODeviceEditDialog();
|
||||
|
||||
QAD::IODevice exec(const QAD::IODevice & d);
|
||||
QAD::IODevice getIODevice(const QAD::IODevice & d);
|
||||
|
||||
private:
|
||||
QAD::IODevice value() const;
|
||||
|
||||
Reference in New Issue
Block a user