Commit 091d1116 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

compile fix for qml2puppet



Change-Id: Iad3c36e66e70c4ba1c885ffc10c4ea3f888aa820
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 1600f55f
......@@ -1150,6 +1150,12 @@ void NodeInstanceServer::loadDummyDataContext(const QString& directory)
}
}
void NodeInstanceServer::sendDebugOutput(DebugOutputCommand::Type type, const QString &message)
{
DebugOutputCommand command(message, type);
nodeInstanceClient()->debugOutput(command);
}
QStringList NodeInstanceServer::dummyDataDirectories(const QString& directoryPath)
{
QStringList dummyDataDirectoryList;
......
......@@ -38,6 +38,7 @@
#include <nodeinstanceserverinterface.h>
#include "servernodeinstance.h"
#include "debugoutputcommand.h"
QT_BEGIN_NAMESPACE
class QFileSystemWatcher;
......@@ -125,6 +126,8 @@ public:
virtual QQmlView *declarativeView() const = 0;
virtual QQuickView *quickView() const = 0;
void sendDebugOutput(DebugOutputCommand::Type type, const QString &message);
public slots:
void refreshLocalFileProperty(const QString &path);
void refreshDummyData(const QString &path);
......
......@@ -212,7 +212,7 @@ ServerNodeInstance ServerNodeInstance::create(NodeInstanceServer *nodeInstanceSe
} else if (!instanceContainer.componentPath().isEmpty()) {
object = Internal::ObjectNodeInstance::createComponent(instanceContainer.componentPath(), nodeInstanceServer->context());
if (object == 0)
nodeInstanceServer->sendDebugOutput(DebugOutputCommand::ErrorType, QString("Component with path %1 could not be created.").arg(InstanceContainer.componentPath()));
nodeInstanceServer->sendDebugOutput(DebugOutputCommand::ErrorType, QString("Component with path %1 could not be created.").arg(instanceContainer.componentPath()));
} else {
object = Internal::ObjectNodeInstance::createPrimitive(instanceContainer.type(), instanceContainer.majorNumber(), instanceContainer.minorNumber(), nodeInstanceServer->context());
if (object == 0)
......
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