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:
Paul Giblock
2010-08-07 18:35:49 -04:00
parent 69d3a3d748
commit 9f2640946e
8 changed files with 31 additions and 104 deletions

View File

@@ -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