]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/main.cpp
Make qt-console compatible to Qt5 (Qt4 still work)
[bacula/bacula] / bacula / src / qt-console / main.cpp
index 4c94f5128f853eaa4643363dc3734d0b8212866b..cb6dc1c6124a798d08c0b268b40614ec296f84c2 100644 (file)
@@ -63,9 +63,11 @@ int main(int argc, char *argv[])
 
 
    app = new QApplication(argc, argv);        
-   app->setStyle(new QPlastiqueStyle());
    app->setQuitOnLastWindowClosed(true);
+#if QT_VERSION < 0x050000
+   app->setStyle(new QPlastiqueStyle());
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
+#endif
      
    QTranslator qtTranslator;
    qtTranslator.load(QString("qt_") + QLocale::system().name(),QLibraryInfo::location(QLibraryInfo::TranslationsPath));