From 5b3d8f25b7bd474e6534b32f5be562525dec3145 Mon Sep 17 00:00:00 2001 From: ravas Date: Thu, 29 Sep 2016 23:23:55 -0700 Subject: [PATCH] set the Player's style to Fusion for OS X; #738 This is a work-around for the broken slider in the default Macintosh style. --- examples/player/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/player/MainWindow.cpp b/examples/player/MainWindow.cpp index 8f5757649..fb7cda4cb 100644 --- a/examples/player/MainWindow.cpp +++ b/examples/player/MainWindow.cpp @@ -48,6 +48,8 @@ #include #include #include +#include + #include "ClickableMenu.h" #include "Slider.h" #include "StatisticsView.h" @@ -110,6 +112,10 @@ MainWindow::MainWindow(QWidget *parent) : , m_preview(0) , m_shader(NULL) { + #if defined(Q_OS_MACX) && QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + QApplication::setStyle(QStyleFactory::create("Fusion")); + #endif + setWindowIcon(QIcon(QString::fromLatin1(":/QtAV.svg"))); mpOSD = new OSDFilter(this); mpSubtitle = new SubtitleFilter(this);