aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-11-30 11:11:30 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2018-12-03 12:57:49 +0000
commit5d5998ca1075ee58134f0584fa745994b65e56fe (patch)
treec9f606dd13f80a155049af1b27aeccf56a62a186
parent1ec7e3a9c84b4f15a7ea5dc74c870919183bc7c8 (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>
-rw-r--r--src/tools/ivigenerator/templates_backend_simulator/pagingmodel.cpp.tpl2
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)