This commit is contained in:
Valentino Orlandi 2022-11-10 18:22:06 +01:00
parent 799dba4acf
commit 367266d834
Signed by: elB4RTO
GPG key ID: 1719E976DB2D4E71
3 changed files with 7 additions and 4 deletions

View file

@ -103,6 +103,9 @@ set(PROJECT_SOURCES
tools/crapnote/crapnote.h
tools/crapnote/crapnote.cpp
games/games.h
games/games.cpp
games/crisscross.ui
games/crisscross.h
games/crisscross.cpp

View file

@ -1942,7 +1942,7 @@ void MainWindow::menu_actionCrissCross_triggered()
} else {
delete this->crisscross;
this->crisscross = new CrissCross( this->palette() );
this->crisscross = new CrissCross( this->window_theme_id );
this->crisscross->show();
}
}
@ -1954,7 +1954,7 @@ void MainWindow::menu_actionSnake_triggered()
} else {
delete this->snake;
this->snake = new Snake( this->palette(), this->FONTS.at("script") );
this->snake = new Snake( this->window_theme_id, this->FONTS.at("script") );
this->snake->show();
}
}

View file

@ -710,8 +710,8 @@ private:
///////////////////
//// CRAPGAMES ////
///////////////////
CrissCross* crisscross = new CrissCross( QPalette() );
Snake* snake = new Snake( QPalette(), QFont() );
CrissCross* crisscross = new CrissCross( 0 );
Snake* snake = new Snake( 0, QFont() );
};
#endif // MAINWINDOW_H