diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2018-11-30 11:11:30 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2018-12-03 12:57:49 +0000 |
commit | 5d5998ca1075ee58134f0584fa745994b65e56fe (patch) | |
tree | c9f606dd13f80a155049af1b27aeccf56a62a186 /src | |
parent | 1ec7e3a9c84b4f15a7ea5dc74c870919183bc7c8 (diff) |
ivigenerator: Fix the wrong model count when using a model simulation
When autogenerating simulation code for a model the provided count was
hardcoded to 100 instead of providing the real item count.
Change-Id: Ifd0e429b3fe0c80cf9d4eb3d4e7673bb6e8c20cf
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl b/src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl index 286cc85..78ba95d 100644 --- a/src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl +++ b/src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl @@ -62,7 +62,7 @@ void {{class}}::registerInstance(const QUuid &identifier) QIVI_SIMULATION_TRY_CALL({{class}}, "registerInstance", void, identifier); qCritical() << "REGISTER" << identifier; - emit countChanged(identifier, 100); + emit countChanged(identifier, m_list.count()); } void {{class}}::unregisterInstance(const QUuid &identifier) |