bind Plasma::Theme::styleSheet() in declarative imports

This commit is contained in:
Sebastian Kügler 2011-04-24 04:04:01 +02:00
parent 5364a3bd50
commit e5dbbdc8f1
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -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();