aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-27 23:25:05 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-27 23:25:05 +0800
commita17d580f623dfc3a6eb33c540203798d6200a5fc (patch)
tree765e611d8416754f6924fd89c8448d86acc4abc7 /main.cpp
parent246949269f370fac5ddb581ee0598480d529a48a (diff)
downloadQMidiPlayer-a17d580f623dfc3a6eb33c540203798d6200a5fc.tar.xz
Ultimate truth. (WTF)
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();
+}