Use QProxyStyle support in DefaultStyle
The specializations to utilize different styles is a nice idea, but it is hard to discover which styles a user may have installed. Additionally, it would be impossible to override a system style. This patch implemnts ClassicStyle as a QProxyStyle. This additionally fixes the missing dependency on toolbar_bg. Utilize CSS now.
This commit is contained in:
@@ -26,16 +26,14 @@
|
||||
#ifndef _CLASSIC_STYLE_H
|
||||
#define _CLASSIC_STYLE_H
|
||||
|
||||
#include <QtGui/QStyle>
|
||||
#include <QtGui/QProxyStyle>
|
||||
|
||||
#include "lmms_style.h"
|
||||
|
||||
|
||||
template<class BaseStyle>
|
||||
class ClassicStyle : public BaseStyle, public LmmsStyle
|
||||
class ClassicStyle : public QProxyStyle, public LmmsStyle
|
||||
{
|
||||
public:
|
||||
ClassicStyle();
|
||||
ClassicStyle( QStyle *style = 0 );
|
||||
virtual ~ClassicStyle()
|
||||
{
|
||||
}
|
||||
@@ -81,6 +79,4 @@ private:
|
||||
};
|
||||
|
||||
|
||||
QPair<QStyle *, LmmsStyle *> classicStyleSpecializationForBaseStyle( QStyle * baseStyle );
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user