mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Fixup Windows Scrollbars on QT5
.. includes to compile .. plastique deprecated so use fusion style instead
This commit is contained in:
@@ -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; }");
|
||||
|
||||
Reference in New Issue
Block a user