| 125 | } |
| 126 | |
| 127 | int DSDialog::exec() |
| 128 | { |
| 129 | //ok,cancel |
| 130 | if (m_bBaseButton){ |
| 131 | _base_button = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,Qt::Horizontal, this); |
| 132 | _main_layout->addWidget(_base_button);//, 5, 1, 1, 1, Qt::AlignHCenter | Qt::AlignBottom); |
| 133 | //_main_layout->addWidget(_base_button,0, Qt::AlignHCenter | Qt::AlignBottom); |
| 134 | connect(_base_button, SIGNAL(rejected()), this, SLOT(reject())); |
| 135 | connect(_base_button, SIGNAL(accepted()), this, SLOT(accept())); |
| 136 | } |
| 137 | |
| 138 | update_font(); |
| 139 | |
| 140 | PopupDlgList::AddDlgTolist(this); |
| 141 | |
| 142 | return QDialog::exec(); |
| 143 | } |
| 144 | |
| 145 | void DSDialog::SetTitleSpace(int h) |
| 146 | { |
no outgoing calls
no test coverage detected