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
d1e45079
Commit
d1e45079
authored
Mar 01, 2010
by
Tobias Hunger
Browse files
Handle _data() methods for testcases
Reviewed-by: dt
parent
d7ac47da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/pluginmanager.cpp
View file @
d1e45079
...
...
@@ -513,13 +513,13 @@ void PluginManager::startTests()
methods
.
append
(
"arg0"
);
// We only want slots starting with "test"
for
(
int
i
=
mo
->
methodOffset
();
i
<
mo
->
methodCount
();
++
i
)
{
if
(
QByteArray
(
mo
->
method
(
i
).
signature
()).
startsWith
(
"test"
))
{
if
(
QByteArray
(
mo
->
method
(
i
).
signature
()).
startsWith
(
"test"
)
&&
!
QByteArray
(
mo
->
method
(
i
).
signature
()).
endsWith
(
"_data()"
))
{
QString
method
=
QString
::
fromLatin1
(
mo
->
method
(
i
).
signature
());
methods
.
append
(
method
.
left
(
method
.
size
()
-
2
));
}
}
QTest
::
qExec
(
pluginSpec
->
plugin
(),
methods
);
}
#endif
}
...
...
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