diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-31 08:40:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-31 08:40:27 +0100 |
commit | 54892e5f6a15c1ce0aba364039174eda3d1a6b8b (patch) | |
tree | 0375dd1d31cca31688ee1516de9bb47e0d9a3a47 /facetracknoir/main.cpp | |
parent | 904add389667ff9d97cde3930a881fae89c3fb50 (diff) |
main: use settings framework
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r-- | facetracknoir/main.cpp | 7 |
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; |