|
|
@ -16,6 +16,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication> |
|
|
|
#include <QApplication> |
|
|
|
|
|
|
|
#include <QDesktopWidget> |
|
|
|
#include <QFontDatabase> |
|
|
|
#include <QFontDatabase> |
|
|
|
|
|
|
|
|
|
|
|
#include "MainWindow.h" |
|
|
|
#include "MainWindow.h" |
|
|
@ -42,6 +43,13 @@ int main(int argc, char *argv[]) |
|
|
|
app.setFont(font); |
|
|
|
app.setFont(font); |
|
|
|
|
|
|
|
|
|
|
|
MainWindow w; |
|
|
|
MainWindow w; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Move the MainWindow to the center
|
|
|
|
|
|
|
|
QRect screenGeometry = QApplication::desktop()->screenGeometry(); |
|
|
|
|
|
|
|
int x = (screenGeometry.width() - w.width()) / 2; |
|
|
|
|
|
|
|
int y = (screenGeometry.height() - w.height()) / 2; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w.move(x, y); |
|
|
|
w.show(); |
|
|
|
w.show(); |
|
|
|
|
|
|
|
|
|
|
|
return app.exec(); |
|
|
|
return app.exec(); |
|
|
|