| 1122 | } |
| 1123 | |
| 1124 | void BaseWorkspace::InitGameView(const std::shared_ptr<ThunderSdkParams>& params) { |
| 1125 | this->resize(def_window_size_); |
| 1126 | // game_view_ = new GameView(context_, sdk_, params, this); |
| 1127 | // game_view_->resize(def_window_size_); |
| 1128 | // game_view_->show(); |
| 1129 | // game_view_->SetMainView(true); |
| 1130 | // setCentralWidget(game_view_); |
| 1131 | // |
| 1132 | // QTimer::singleShot(1, this, [=, this]() { |
| 1133 | // QRect screenGeometry = QGuiApplication::primaryScreen()->geometry(); |
| 1134 | // int x = (screenGeometry.width() - this->width()) / 2; |
| 1135 | // int y = (screenGeometry.height() - this->height()) / 2; |
| 1136 | // this->move(x, y); |
| 1137 | // }); |
| 1138 | } |
| 1139 | |
| 1140 | bool BaseWorkspace::eventFilter(QObject* watched, QEvent* event) { |
| 1141 | return QMainWindow::eventFilter(watched, event); |
nothing calls this directly
no outgoing calls
no test coverage detected