bind Plasma::Theme::styleSheet() in declarative imports
This commit is contained in:
parent
5364a3bd50
commit
e5dbbdc8f1
@ -116,6 +116,11 @@ QColor ThemeProxy::viewFocusColor() const
|
||||
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::ViewFocusColor);
|
||||
}
|
||||
|
||||
QString ThemeProxy::styleSheet() const
|
||||
{
|
||||
return Plasma::Theme::defaultTheme()->styleSheet(QString());
|
||||
}
|
||||
|
||||
|
||||
#include "theme_p.moc"
|
||||
|
||||
|
@ -49,6 +49,7 @@ class ThemeProxy : public QObject
|
||||
Q_PROPERTY(QColor viewBackgroundColor READ viewBackgroundColor NOTIFY themeChanged)
|
||||
Q_PROPERTY(QColor viewHoverColor READ viewHoverColor NOTIFY themeChanged)
|
||||
Q_PROPERTY(QColor viewFocusColor READ viewFocusColor NOTIFY themeChanged)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet NOTIFY themeChanged)
|
||||
|
||||
public:
|
||||
ThemeProxy(QObject *parent = 0);
|
||||
@ -72,6 +73,7 @@ public:
|
||||
QColor viewBackgroundColor() const;
|
||||
QColor viewHoverColor() const;
|
||||
QColor viewFocusColor() const;
|
||||
QString styleSheet() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void themeChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user