added workaround for #334

This commit is contained in:
itsmattkc
2019-01-19 00:27:20 +11:00
parent 0bbdab740b
commit 61f5e131b9
3 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
if (launch_fullscreen) {
w.showFullScreen();
} else {
w.showMaximized();
w.show();
}
return a.exec();
+10 -4
View File
@@ -229,7 +229,7 @@ MainWindow::MainWindow(QWidget *parent, const QString &an) :
setup_layout(false);
init_audio();
init_audio();
}
MainWindow::~MainWindow() {
@@ -1028,13 +1028,19 @@ void MainWindow::paintEvent(QPaintEvent *event) {
QTimer::singleShot(10, this, SLOT(load_with_launch()));
enable_launch_with_project = false;
}
if (!demoNoticeShown) {
#ifndef QT_DEBUG
if (!demoNoticeShown) {
DemoNotice* d = new DemoNotice(this);
d->open();
demoNoticeShown = true;
}
#endif
if (windowState() != Qt::WindowFullScreen) {
// workaround for setting to maximized - on some systems, setting
// to maximized doesn't work until after the paintEvent
setWindowState(Qt::WindowMaximized);
}
demoNoticeShown = true;
}
}
void MainWindow::clear_undo_stack() {
+1 -1
View File
@@ -41,7 +41,7 @@ public slots:
protected:
void closeEvent(QCloseEvent *);
void paintEvent(QPaintEvent *event);
void paintEvent(QPaintEvent *event);
private slots:
void clear_undo_stack();