packages without structure are invalid
This commit is contained in:
parent
8646393758
commit
53c161fb58
@ -75,6 +75,10 @@ Package &Package::operator=(const Package &rhs)
|
||||
|
||||
bool Package::isValid() const
|
||||
{
|
||||
if (!d->structure) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (d->checkedValid) {
|
||||
return d->valid;
|
||||
}
|
||||
|
@ -105,7 +105,6 @@ void AppletInterface::init()
|
||||
engine->setNetworkAccessManagerFactory(new PackageAccessManagerFactory(m_appletScriptEngine->package()));
|
||||
|
||||
m_qmlObject->setSource(QUrl::fromLocalFile(m_appletScriptEngine->mainScript()));
|
||||
|
||||
|
||||
if (!m_qmlObject->engine() || !m_qmlObject->engine()->rootContext() || !m_qmlObject->engine()->rootContext()->isValid() || m_qmlObject->mainComponent()->isError()) {
|
||||
QString reason;
|
||||
|
@ -24,7 +24,7 @@ import org.kde.plasma.core 0.1 as PlasmaCore
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
color: Qt.rgba(0,0,0,64); // translucent black
|
||||
color: "black"
|
||||
width: 640
|
||||
height: 480
|
||||
|
||||
|
@ -31,7 +31,7 @@ PlasmaCore.FrameSvgItem {
|
||||
property Item containment
|
||||
|
||||
onContainmentChanged: {
|
||||
print("New Containment: " + containment)
|
||||
print("New panel Containment: " + containment)
|
||||
//containment.parent = root
|
||||
containment.visible = true
|
||||
containment.anchors.fill = root
|
||||
|
@ -101,6 +101,7 @@ void View::setContainment(Plasma::Containment *cont)
|
||||
}
|
||||
|
||||
QObject *graphicObject = m_containment.data()->property("graphicObject").value<QObject *>();
|
||||
|
||||
if (graphicObject) {
|
||||
qDebug() << "using as graphic containment" << graphicObject << m_containment.data();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user