Commit 80527b93 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.tests: fixes the auto tests for latest changes

parent a51d392f
......@@ -35,10 +35,15 @@
#include <bindingproperty.h>
#include <variantproperty.h>
#include <nodelistproperty.h>
#include <nodeinstanceview.h>
#include <model.h>
TestView::TestView(QObject *parent)
: QmlDesigner::QmlModelView(parent)
TestView::TestView(QmlDesigner::Model *model)
: QmlDesigner::QmlModelView(model)
{
QmlDesigner::NodeInstanceView *nodeInstanceView = new QmlDesigner::NodeInstanceView(model);
model->attachView(nodeInstanceView);
}
void TestView::modelAttached(QmlDesigner::Model *model)
......
......@@ -33,6 +33,7 @@
#include <qmlmodelview.h>
#include <QVariant>
#include <QStringList>
#include <model.h>
class TestView : public QmlDesigner::QmlModelView
{
......@@ -48,7 +49,7 @@ public:
QStringList arguments;
};
TestView(QObject *parent = 0);
TestView(QmlDesigner::Model *model);
void modelAttached(QmlDesigner::Model *model);
void modelAboutToBeDetached(QmlDesigner::Model *model);
......
Markdown is supported
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