Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Qt CAN - Virtual test-bench tooling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Qt CAN 2.0
Qt CAN - Virtual test-bench tooling
Commits
69a1cd3f
Commit
69a1cd3f
authored
May 30, 2018
by
Thomas BOUTROUE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear QML cache on reset even when no network is active
(could remain error data in cache)
parent
fd2ef301
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Manager.cpp
Manager.cpp
+5
-5
example_network1.qml
test/example_network1.qml
+2
-2
No files found.
Manager.cpp
View file @
69a1cd3f
...
...
@@ -250,10 +250,10 @@ void Manager::reset (void) {
void
Manager
::
deinit
(
void
)
{
static
QElapsedTimer
bench
;
bench
.
restart
();
update_ready
(
false
);
update_hasValidNetwork
(
false
);
if
(
m_currentNetwork
)
{
NetworkDefinition
*
oldNet
=
m_currentNetwork
;
update_ready
(
false
);
update_hasValidNetwork
(
false
);
update_currentNetwork
(
Q_NULLPTR
);
QCoreApplication
::
processEvents
();
m_objectsInstances
.
clear
();
...
...
@@ -310,10 +310,10 @@ void Manager::deinit (void) {
m_serialBuses
.
clear
();
m_dashboards
.
clear
();
delete
oldNet
;
qmlEngine
->
collectGarbage
();
qmlEngine
->
trimComponentCache
();
QCoreApplication
::
processEvents
();
}
qmlEngine
->
collectGarbage
();
qmlEngine
->
trimComponentCache
();
QCoreApplication
::
processEvents
();
WARN
<<
"Network reset in"
<<
bench
.
elapsed
()
<<
"ms"
;
}
...
...
test/example_network1.qml
View file @
69a1cd3f
...
...
@@ -2,8 +2,8 @@ import QtQml 2.2;
import
QtCAN
.
CanTestBench
2.0
;
NetworkDefinition
{
uid
:
"TEST"
;
title
:
"Test network definition
1
(robotic arm)"
;
uid
:
"TEST
NG
"
;
title
:
"Test network definition
NG
(robotic arm)"
;
dumpObjectsOnInit
:
false
;
benchmarkSimulatorTick
:
false
;
benchmarkCanFramesTiming
:
false
;
...
...
Write
Preview
Markdown
is supported
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