229 for (int i = 0; i < nPages; i++) |
229 for (int i = 0; i < nPages; i++) |
230 connect(ui.Pages->widget(i), SIGNAL(goBack()), this, SLOT(GoBack())); |
230 connect(ui.Pages->widget(i), SIGNAL(goBack()), this, SLOT(GoBack())); |
231 |
231 |
232 pageSwitchMapper = new QSignalMapper(this); |
232 pageSwitchMapper = new QSignalMapper(this); |
233 connect(pageSwitchMapper, SIGNAL(mapped(int)), this, SLOT(GoToPage(int))); |
233 connect(pageSwitchMapper, SIGNAL(mapped(int)), this, SLOT(GoToPage(int))); |
234 |
234 |
235 connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); |
|
236 onFrontendFullscreen(config->isFrontendFullscreen()); |
|
237 |
|
238 connect(ui.pageMain->BtnSinglePlayer, SIGNAL(clicked()), pageSwitchMapper, SLOT(map())); |
235 connect(ui.pageMain->BtnSinglePlayer, SIGNAL(clicked()), pageSwitchMapper, SLOT(map())); |
239 pageSwitchMapper->setMapping(ui.pageMain->BtnSinglePlayer, ID_PAGE_SINGLEPLAYER); |
236 pageSwitchMapper->setMapping(ui.pageMain->BtnSinglePlayer, ID_PAGE_SINGLEPLAYER); |
240 |
237 |
241 connect(ui.pageMain->BtnSetup, SIGNAL(clicked()), pageSwitchMapper, SLOT(map())); |
238 connect(ui.pageMain->BtnSetup, SIGNAL(clicked()), pageSwitchMapper, SLOT(map())); |
242 pageSwitchMapper->setMapping(ui.pageMain->BtnSetup, ID_PAGE_SETUP); |
239 pageSwitchMapper->setMapping(ui.pageMain->BtnSetup, ID_PAGE_SETUP); |
378 |
375 |
379 ui.Pages->setCurrentIndex(ID_PAGE_INFO); |
376 ui.Pages->setCurrentIndex(ID_PAGE_INFO); |
380 PagesStack.push(ID_PAGE_MAIN); |
377 PagesStack.push(ID_PAGE_MAIN); |
381 ((AbstractPage*)ui.Pages->widget(ID_PAGE_MAIN))->triggerPageEnter(); |
378 ((AbstractPage*)ui.Pages->widget(ID_PAGE_MAIN))->triggerPageEnter(); |
382 GoBack(); |
379 GoBack(); |
|
380 |
|
381 connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); |
|
382 onFrontendFullscreen(config->isFrontendFullscreen()); |
383 } |
383 } |
384 |
384 |
385 void HWForm::onFrontendFullscreen(bool value) |
385 void HWForm::onFrontendFullscreen(bool value) |
386 { |
386 { |
387 if (value) |
387 if (value) |