summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-03 11:22:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-03 11:22:06 +0100
commita3df0c8a8d19655040c7d21812414d7a335def61 (patch)
tree6739401d8e59800731b2faf26e49b8df63664573 /facetracknoir/main.cpp
parent7307adbc3b8ec2213bc90a91deb1beb9198e7ff2 (diff)
parent519434cd1abb8991635487c6d84bc0d85367fc42 (diff)
Merge branch 'feature/settings-template'
Conflicts: README.md
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index 5ba3fcd5..3143a093 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -30,6 +30,7 @@
#include <QList>
#include <QDir>
#include <QStringList>
+#include <memory>
#if defined(_WIN32) && defined(_MSC_VER)
# include <windows.h>
@@ -61,11 +62,9 @@ int main(int argc, char** argv)
#endif
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication app(argc, argv);
- FaceTrackNoIR w;
- QDesktopWidget desktop;
+ auto w = std::make_shared<FaceTrackNoIR>();
- w.move(desktop.screenGeometry().width()/2-w.width()/2, 100);
- w.show();
+ w->show();
app.exec();
return 0;