From 667312695bacd560c60826a46cdb8e3d4f73d758 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Jul 2015 08:24:01 +0200 Subject: main: improve theme/qt plugin selection logic --- facetracknoir/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'facetracknoir') diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index 7ba0a462..45483a68 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -33,12 +33,14 @@ int main(int argc, char** argv) { #ifdef _WIN32 add_program_library_path(); -#endif +#elif !defined(__linux) // workaround QTBUG-38598 QCoreApplication::addLibraryPath("."); +#endif +#if defined(_WIN32) || defined(__APPLE__) // qt5 designer-made controls look like shit on 'doze -sh 20140921 -#ifdef _WIN32 + // also our OSX look leaves a lot to be desired -sh 20150726 { const QStringList preferred { "fusion", "windowsvista", "jazzbands'-marijuana", "macintosh", "windowsxp" }; for (const auto& style_name : preferred) -- cgit v1.2.3