implemented full screen toggle

This commit is contained in:
itsmattkc
2019-09-24 15:45:57 +10:00
parent 69da763d9f
commit cad9fc8e48
4 changed files with 27 additions and 5 deletions
+9
View File
@@ -55,6 +55,15 @@ olive::MainWindow::MainWindow(QWidget *parent) :
setMenuBar(main_menu);
}
void olive::MainWindow::SetFullscreen(bool fullscreen)
{
if (fullscreen) {
setWindowState(windowState() | Qt::WindowFullScreen);
} else {
setWindowState(windowState() & ~Qt::WindowFullScreen);
}
}
void olive::MainWindow::ProjectOpen(Project* p)
{
// FIXME Use settings data to create panels and restore state if they exist