Commit 386a1057 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Do not assume all Panels are a FrameSvgItem

At least in the case of org.kde.plasma.phoneshell it's a Rectangle
parent 4c024623
......@@ -1227,10 +1227,13 @@ void PanelView::handleQmlStatusChange(QQmlComponent::Status status)
disconnect(this, &QuickViewSharedEngine::statusChanged, this, &PanelView::handleQmlStatusChange);
updatePadding();
connect(rootObject, SIGNAL(bottomPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(topPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(rightPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(leftPaddingChanged()), this, SLOT(updatePadding()));
int paddingSignal = rootObject->metaObject()->indexOfSignal(SIGNAL(bottomPaddingChanged()));
if (paddingSignal >= 0) {
connect(rootObject, SIGNAL(bottomPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(topPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(rightPaddingChanged()), this, SLOT(updatePadding()));
connect(rootObject, SIGNAL(leftPaddingChanged()), this, SLOT(updatePadding()));
}
const QVariant maskProperty = rootObject->property("panelMask");
if (static_cast<QMetaType::Type>(maskProperty.type()) == QMetaType::QRegion) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment