MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / InitGameView

Method InitGameView

src/client/ct_base_workspace.cpp:1124–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected