| 154 | { |
| 155 | QKeyEvent* keyEvent = (QKeyEvent*)e; |
| 156 | if ((keyEvent->key() == Qt::Key_Escape) || (keyEvent->key() == Qt::Key_Return) || keyEvent->key() == Qt::Key_Enter || (keyEvent->key() == Qt::Key_Space)) return true; |
| 157 | } |
| 158 | return QDialogFrameless::event(e); |
| 159 | } |
| 160 | void VarViewUi::showEvent(QShowEvent*) |
| 161 | { |
| 162 | TableUpdate(); |
| 163 | SetForegroundWindow((HWND)QWidget::winId()); |
| 164 | } |
| 165 | void VarViewUi::customEvent(QEvent* e) |
| 166 | { |
| 167 | if (e->type() == static_cast<int>(QiEvent::var_reload)) |
| 168 | { |
| 169 | if (!isHidden()) |
| 170 | { |
| 171 | if (!reload) |
| 172 | { |