| 281 | } |
| 282 | |
| 283 | void GUIHelpers::GUILock::unlock() |
| 284 | { |
| 285 | if (!currently_locked_) return; |
| 286 | if (locked_widget_ == nullptr) return; |
| 287 | |
| 288 | locked_widget_->setEnabled(was_enabled_); |
| 289 | QGuiApplication::restoreOverrideCursor(); |
| 290 | currently_locked_ = false; |
| 291 | } |
| 292 | |
| 293 | GUIHelpers::OverlapDetector::OverlapDetector(int levels) |
| 294 | { |