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
Marco Bubke
flatpak-qt-creator
Commits
e72cfeef
Commit
e72cfeef
authored
Dec 15, 2015
by
Eike Ziller
Browse files
Merge remote-tracking branch 'origin/3.6'
Change-Id: Iedfd7373f3e4cf60d101aace1b0b25d41f11cda1
parents
fb7ceae6
1a8f37db
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/autotest/testresultmodel.cpp
View file @
e72cfeef
...
...
@@ -137,7 +137,6 @@ void TestResultModel::addTestResult(TestResult *testResult, bool autoExpand)
QVector
<
Utils
::
TreeItem
*>
topLevelItems
=
rootItem
()
->
children
();
int
lastRow
=
topLevelItems
.
size
()
-
1
;
TestResultItem
*
newItem
=
new
TestResultItem
(
testResult
);
// we'll add the new item, so raising it's counter
if
(
!
isCurrentTestMssg
)
{
int
count
=
m_testResultCount
.
value
(
testResult
->
result
(),
0
);
...
...
@@ -150,14 +149,16 @@ void TestResultModel::addTestResult(TestResult *testResult, bool autoExpand)
if
(
result
&&
result
->
result
()
==
Result
::
MessageCurrentTest
)
{
current
->
updateDescription
(
testResult
->
description
());
emit
dataChanged
(
current
->
index
(),
current
->
index
());
delete
testResult
;
return
;
}
}
rootItem
()
->
appendChild
(
new
Item
);
rootItem
()
->
appendChild
(
new
TestResultItem
(
testResult
)
);
return
;
}
TestResultItem
*
newItem
=
new
TestResultItem
(
testResult
);
// FIXME this might be totally wrong... we need some more unique information!
for
(
int
row
=
lastRow
;
row
>=
0
;
--
row
)
{
TestResultItem
*
current
=
static_cast
<
TestResultItem
*>
(
topLevelItems
.
at
(
row
));
...
...
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