Commit e319785c authored by Pierre Lamot's avatar Pierre Lamot Committed by Thomas Guillem
Browse files

qt: force QML fusion style



Forcing a QQuickStyle avoids the use of system style components which may have
unexpected behaviors.

Fusion style is provided by Qt and has desktop look'n feel and use system
palette.
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent a1d64468
......@@ -42,6 +42,7 @@ extern "C" char **environ;
#include <QApplication>
#include <QDate>
#include <QMutex>
#include <QtQuickControls2/QQuickStyle>
#include "qt.hpp"
......@@ -566,6 +567,8 @@ static void *Thread( void *obj )
QApplication::setAttribute( Qt::AA_DontCheckOpenGLContextThreadAffinity );
QQuickWindow::setDefaultAlphaBuffer(true);
QQuickStyle::setStyle("fusion");
/* Start the QApplication here */
QVLCApp app( argc, argv );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment