Items can be added to model dynamically.

This commit is contained in:
2025-12-08 13:25:02 +01:00
parent 144460b5aa
commit 4c906099eb
7 changed files with 128 additions and 9 deletions

View File

@ -70,7 +70,7 @@ void GenericCore::triggerApplicationUpdate() {
QProcess::startDetached(toolFilePath, args);
}
std::shared_ptr<QAbstractItemModel> GenericCore::getModel() const { return m_mainModel; }
std::shared_ptr<TableModel> GenericCore::getModel() const { return m_mainModel; }
void GenericCore::setupModels() {
m_mainModel = make_shared<TableModel>(this);