Fixup Windows Scrollbars on QT5

.. includes to compile

.. plastique deprecated so use fusion style instead
This commit is contained in:
Mark Liversedge
2014-05-25 19:43:30 +01:00
parent 841277a6a5
commit f3ab2aa16e
6 changed files with 28 additions and 10 deletions

View File

@@ -21,7 +21,10 @@
#include "RideItem.h"
#include "RideFile.h"
#include "Context.h"
#include "Settings.h"
#include <QStyle>
#include <QStyleFactory>
#include <QScrollBar>
IntervalTreeView::IntervalTreeView(Context *context) : context(context)
@@ -33,7 +36,7 @@ IntervalTreeView::IntervalTreeView(Context *context) : context(context)
setAttribute(Qt::WA_MacShowFocusRect, 0);
#endif
#ifdef Q_OS_WIN
QStyle *cde = QStyleFactory::create("plastique");
QStyle *cde = QStyleFactory::create(OS_STYLE);
verticalScrollBar()->setStyle(cde);
#endif
setStyleSheet("QTreeView::item:hover { background: lightGray; }");