aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
blob: 7e24b69720c97e13c94b8dd56e8957d2d758c410 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "qmpmainwindow.hpp"
#include <QApplication>
#include <QStyle>
#include <QDesktopWidget>

int main(int argc, char *argv[])
{
	QApplication a(argc,argv);
	qmpMainWindow w;
	w.setGeometry(QStyle::alignedRect(
		Qt::LeftToRight,Qt::AlignCenter,w.size(),
		qApp->desktop()->availableGeometry()));
	w.show();

	return a.exec();
}