From 31d9478303fd6a8a4d6573b89063e4c19e19b489 Mon Sep 17 00:00:00 2001 From: craig Date: Sat, 11 Feb 2012 10:52:55 +0000 Subject: [PATCH] Use current style for position slider. --- ChangeLog | 1 + gui/mainwindow.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d5e2298ab..194d4bd0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,7 @@ 28. Save/restore maximised state when collpasing/expanding interface. 29. Add 'copy to device', etc, actions to folders page. 30. Incremental update of folder page items. +31. Use current style for position slider. 0.3.0 ----- diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1252631dd..9c1849f36 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -107,14 +107,15 @@ public: ProxyStyle() : QProxyStyle() { + setBaseStyle(qApp->style()); } int styleHint(StyleHint stylehint, const QStyleOption *opt, const QWidget *widget, QStyleHintReturn *returnData) const { if(stylehint==QStyle::SH_Slider_AbsoluteSetButtons){ - return Qt::LeftButton|QProxyStyle::styleHint(stylehint,opt,widget,returnData); + return Qt::LeftButton|QProxyStyle::styleHint(stylehint, opt, widget ,returnData); }else{ - return QProxyStyle::styleHint(stylehint,opt,widget,returnData); + return QProxyStyle::styleHint(stylehint, opt, widget, returnData); } } };