diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-17 19:16:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-17 19:16:48 +0200 |
commit | 5d22b1379f161ae2e367ed24cba2d2e774d06865 (patch) | |
tree | 593b90d77ddd6f277d5ac4a031b3befc64f8417a | |
parent | ec37d5b6834e45b2c90a2919fa9023dee5c0237c (diff) |
ui: Enable antialiasing
-rw-r--r-- | facetracknoir/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index fbf28678..a015eeeb 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -28,6 +28,7 @@ #include <QDesktopWidget> #include <QDebug> #include <QList> +#include <QFont> #if defined(_WIN32) # include <windows.h> @@ -35,6 +36,7 @@ #elif defined(Q_OS_UNIX) #include <X11/Xlib.h> #endif + int main(int argc, char** argv) { #if defined(Q_WS_X11) @@ -44,6 +46,7 @@ int main(int argc, char** argv) QFont font; font.setFamily(font.defaultFamily()); font.setPointSize(9); + font.setStyleStrategy(QFont::PreferAntialias); app.setFont(font); FaceTrackNoIR w; // |