28 lines
670 B
C++
28 lines
670 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include <qtutils.h>
|
|
#include <QSurfaceFormat>
|
|
#include "Version.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#ifdef DEBUG_MODE
|
|
printf("Starting PixelWars %d.%d\n", PixelWars_VERSION_MAJOR, PixelWars_VERSION_MINOR);
|
|
#endif
|
|
QSurfaceFormat format;
|
|
format.setMinorVersion(3);
|
|
format.setMajorVersion(3);
|
|
format.setProfile(QSurfaceFormat::CoreProfile);
|
|
QSurfaceFormat::setDefaultFormat(format);
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
|
|
|
QString css = QtUtils::fileToString(":qdarkstyle/style.qss");
|
|
if (!css.isEmpty())
|
|
qApp->setStyleSheet(css);
|
|
|
|
w.show();
|
|
return a.exec();
|
|
}
|