--- a/QTfrontend/hwform.cpp Thu Aug 07 12:09:52 2008 +0000
+++ b/QTfrontend/hwform.cpp Thu Aug 07 13:30:09 2008 +0000
@@ -54,6 +54,9 @@
UpdateTeamsLists();
UpdateWeapons();
+ connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool)));
+ onFrontendFullscreen(config->isFrontendFullscreen());
+
connect(ui.pageMain->BtnSinglePlayer, SIGNAL(clicked()), this, SLOT(GoToSinglePlayer()));
connect(ui.pageMain->BtnSetup, SIGNAL(clicked()), this, SLOT(GoToSetup()));
connect(ui.pageMain->BtnNet, SIGNAL(clicked()), this, SLOT(GoToNet()));
@@ -127,6 +130,12 @@
GoToPage(ID_PAGE_MAIN);
}
+void HWForm::onFrontendFullscreen(bool value)
+{
+ qDebug() << "fullscreen = " << value;
+ setWindowState(windowState() | (value ? Qt::WindowFullScreen : Qt::WindowNoState));
+}
+
void HWForm::UpdateWeapons()
{
// FIXME: rewrite this with boost (or TR1/0x)