openmw-tes3coop/apps/opencs/view/doc/newgame.cpp

14 lines
No EOL
338 B
C++

#include "newgame.hpp"
#include <QApplication>
#include <QDesktopWidget>
CSVDoc::NewGameDialogue::NewGameDialogue()
{
setWindowTitle ("Create New Game");
QRect scr = QApplication::desktop()->screenGeometry();
QRect rect = geometry();
move (scr.center().x() - rect.center().x(), scr.center().y() - rect.center().y());
}