From 0822b88738e00625efd27ccca9119885272924d2 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 26 Sep 2011 02:36:09 +0200 Subject: fixing bugs found during use ;) --- libsowatch/declarativewatchlet.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libsowatch/declarativewatchlet.cpp') diff --git a/libsowatch/declarativewatchlet.cpp b/libsowatch/declarativewatchlet.cpp index 60538f8..ca60fb0 100644 --- a/libsowatch/declarativewatchlet.cpp +++ b/libsowatch/declarativewatchlet.cpp @@ -66,15 +66,14 @@ QDeclarativeContext* DeclarativeWatchlet::rootContext() void DeclarativeWatchlet::activate() { - Watchlet::activate(); + GraphicsWatchlet::activate(); _wrapper->activate(); - _scene->update(); } void DeclarativeWatchlet::deactivate() { - Watchlet::deactivate(); _wrapper->deactivate(); + GraphicsWatchlet::deactivate(); } void DeclarativeWatchlet::handleComponentStatus(QDeclarativeComponent::Status status) @@ -90,7 +89,7 @@ void DeclarativeWatchlet::handleComponentStatus(QDeclarativeComponent::Status st case QDeclarativeComponent::Ready: obj = _component->create(); if (_component->isError()) { - qWarning() << "QML has instantation errors:"; + qWarning() << "QML has errors found while creating:"; qWarning() << _component->errors(); return; } @@ -99,7 +98,7 @@ void DeclarativeWatchlet::handleComponentStatus(QDeclarativeComponent::Status st scene()->addItem(_item); break; case QDeclarativeComponent::Error: - qWarning() << "QML has errors:"; + qWarning() << "QML has errors found while loading:"; qWarning() << _component->errors(); break; } -- cgit v1.2.3