Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
80527b93
Commit
80527b93
authored
Sep 23, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.tests: fixes the auto tests for latest changes
parent
a51d392f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
View file @
80527b93
This diff is collapsed.
Click to expand it.
tests/auto/qml/qmldesigner/testview.cpp
View file @
80527b93
...
...
@@ -35,10 +35,15 @@
#include
<bindingproperty.h>
#include
<variantproperty.h>
#include
<nodelistproperty.h>
#include
<nodeinstanceview.h>
#include
<model.h>
TestView
::
TestView
(
Q
Object
*
parent
)
:
QmlDesigner
::
QmlModelView
(
parent
)
TestView
::
TestView
(
Q
mlDesigner
::
Model
*
model
)
:
QmlDesigner
::
QmlModelView
(
model
)
{
QmlDesigner
::
NodeInstanceView
*
nodeInstanceView
=
new
QmlDesigner
::
NodeInstanceView
(
model
);
model
->
attachView
(
nodeInstanceView
);
}
void
TestView
::
modelAttached
(
QmlDesigner
::
Model
*
model
)
...
...
tests/auto/qml/qmldesigner/testview.h
View file @
80527b93
...
...
@@ -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
(
Q
Object
*
parent
=
0
);
TestView
(
Q
mlDesigner
::
Model
*
model
);
void
modelAttached
(
QmlDesigner
::
Model
*
model
);
void
modelAboutToBeDetached
(
QmlDesigner
::
Model
*
model
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment