Skip to content

Commit

Permalink
Merge pull request #741 from r-a-v-a-s/slider
Browse files Browse the repository at this point in the history
set the Player's style to Fusion for OS X; #738
  • Loading branch information
wang-bin authored Oct 1, 2016
2 parents bef27eb 5b3d8f2 commit 8465075
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/player/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 48,8 @@
#include <QToolTip>
#include <QKeyEvent>
#include <QWheelEvent>
#include <QStyleFactory>

#include "ClickableMenu.h"
#include "Slider.h"
#include "StatisticsView.h"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8465075

Please sign in to comment.