Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
797bc649
Commit
797bc649
authored
Apr 26, 2010
by
Kai Koehne
Browse files
Quick Designer: Fix core tests
'property var' isn't supported any more, it's now 'property variant'
parent
e01c6273
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/coretests/testcore.cpp
View file @
797bc649
...
...
@@ -423,8 +423,8 @@ void TestCore::testRewriterDynamicProperties()
" property color cc:
\"
#ffffff
\"\n
"
" property date t
\n
"
" property date tt:
\"
2000-03-20
\"\n
"
" property var v
\n
"
" property var vv:
\"
Hello
\"\n
"
" property var
iant
v
\n
"
" property var
iant
vv:
\"
Hello
\"\n
"
"}"
);
QPlainTextEdit
textEdit1
;
...
...
@@ -511,7 +511,7 @@ void TestCore::testRewriterDynamicProperties()
QCOMPARE
(
testRewriterView1
->
rootModelNode
().
variantProperty
(
"tt"
).
value
().
value
<
QDate
>
(),
QDate
(
2000
,
3
,
20
));
QVERIFY
(
rootModelNode
.
hasVariantProperty
(
"v"
));
QCOMPARE
(
rootModelNode
.
variantProperty
(
"v"
).
dynamicTypeName
(),
QString
(
"var"
));
QCOMPARE
(
rootModelNode
.
variantProperty
(
"v"
).
dynamicTypeName
(),
QString
(
"var
iant
"
));
const
int
type
=
rootModelNode
.
variantProperty
(
"v"
).
value
().
type
();
QCOMPARE
(
type
,
QMetaType
::
type
(
"QVariant"
));
...
...
@@ -2312,19 +2312,19 @@ void TestCore::testRewriterPropertyDeclarations()
//
// [default] property <type> <name>[: defaultValue]
//
// where type is (int | bool | double | real | string | url | color | date |
var |
variant)
// where type is (int | bool | double | real | string | url | color | date | variant)
//
// Unsupported:
// property var varProperty2: boolProperty
// property var myArray: [ Rectangle {} ]
// property var someGradient: Gradient {}
// property var
iant
varProperty2: boolProperty
// property var
iant
myArray: [ Rectangle {} ]
// property var
iant
someGradient: Gradient {}
char
qmlString
[]
=
"import Qt 4.7
\n
"
"Item {
\n
"
" property int intProperty
\n
"
" property bool boolProperty: true
\n
"
" property var varProperty1
\n
"
" property var
iant
varProperty1
\n
"
" default property url urlProperty
\n
"
" intProperty: 2
\n
"
"}
\n
"
;
...
...
@@ -2381,7 +2381,7 @@ void TestCore::testRewriterPropertyAliases()
//
// [default] property alias <name>: <alias reference>
//
// where type is (int | bool | double | real | string | url | color | date |
var |
variant)
// where type is (int | bool | double | real | string | url | color | date | variant)
//
char
qmlString
[]
=
"import Qt 4.7
\n
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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