aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..7e24b69
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,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();
+}