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
Tobias Hunger
qt-creator
Commits
b9aa3e9b
Commit
b9aa3e9b
authored
Jun 29, 2010
by
Kai Koehne
Browse files
Qml autotests: Fix compilation errors
parent
a2ac6713
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/coretests/testcore.cpp
View file @
b9aa3e9b
...
...
@@ -78,7 +78,7 @@ static void initializeMetaTypeSystem(const QString &resourcePath)
QDir
::
Files
,
QDir
::
Name
);
const
QStringList
errors
=
QmlJS
::
Interpreter
::
MetaTypeSystem
::
load
(
xmlFiles
);
const
QStringList
errors
=
QmlJS
::
Interpreter
::
CppQmlTypesLoader
::
load
(
xmlFiles
);
foreach
(
const
QString
&
error
,
errors
)
qWarning
()
<<
qPrintable
(
error
);
}
...
...
tests/auto/qml/qmlprojectmanager/fileformat/tst_fileformat.cpp
View file @
b9aa3e9b
...
...
@@ -44,7 +44,7 @@ void TestProject::testFileFilter()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -74,7 +74,7 @@ void TestProject::testFileFilter()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -133,7 +133,7 @@ void TestProject::testFileFilter()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -165,7 +165,7 @@ void TestProject::testFileFilter()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -194,7 +194,7 @@ void TestProject::testFileFilter()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -228,7 +228,7 @@ void TestProject::testMatchesFile()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
@@ -259,7 +259,7 @@ void TestProject::testLibraryPaths()
QDeclarativeComponent
component
(
&
engine
);
component
.
setData
(
projectFile
.
toUtf8
(),
QUrl
());
if
(
!
component
.
isReady
())
qDebug
()
<<
component
.
error
s
String
();
qDebug
()
<<
component
.
errorString
();
QVERIFY
(
component
.
isReady
());
QmlProjectItem
*
project
=
qobject_cast
<
QmlProjectItem
*>
(
component
.
create
());
...
...
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