Merge branch 'Plasma/5.4'
This commit is contained in:
commit
3eb52eb6ed
3 changed files with 2 additions and 4 deletions
|
@ -609,8 +609,9 @@ void EffectView::init(ViewType type)
|
|||
}
|
||||
QString mainFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, path, QStandardPaths::LocateFile);
|
||||
setResizeMode(QQuickView::SizeRootObjectToView);
|
||||
rootContext()->setContextProperty("engine", this);
|
||||
setSource(QUrl(mainFile));
|
||||
rootObject()->setProperty("color",
|
||||
KColorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(0)).background(KColorScheme::NormalBackground).color());
|
||||
connect(rootObject(), SIGNAL(changed()), this, SIGNAL(changed()));
|
||||
setMinimumSize(initialSize());
|
||||
connect(rootObject(), SIGNAL(implicitWidthChanged()), this, SLOT(slotImplicitSizeChanged()));
|
||||
|
|
|
@ -126,8 +126,6 @@ public:
|
|||
};
|
||||
EffectView(ViewType type, QWindow *parent = 0);
|
||||
|
||||
Q_INVOKABLE QColor backgroundViewColor() { return KColorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(0)).background(KColorScheme::NormalBackground).color(); };
|
||||
|
||||
void save();
|
||||
void load();
|
||||
void defaults();
|
||||
|
|
|
@ -27,7 +27,6 @@ Rectangle {
|
|||
signal changed
|
||||
implicitWidth: col.implicitWidth
|
||||
implicitHeight: col.implicitHeight
|
||||
color: engine.backgroundViewColor()
|
||||
|
||||
Component {
|
||||
id: sectionHeading
|
||||
|
|
Loading…
Reference in a new issue