connected basic navigation model; completed controller
This commit is contained in:
parent
8a81c48606
commit
717e131b75
10 changed files with 60 additions and 39 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#include "NavigationListModel.h"
|
||||
|
||||
#include "NavigationItemModel.h"
|
||||
|
||||
NavigationListModel::NavigationListModel(QObject* parent) : QObject(parent)
|
||||
{
|
||||
|
||||
|
|
@ -10,8 +12,11 @@ QList<QObject *> NavigationListModel::getModelItems()
|
|||
return mItems;
|
||||
}
|
||||
|
||||
void NavigationListModel::setModelItems(QList<QObject *> list)
|
||||
void NavigationListModel::setModelItems(QList<NavigationItemModel *> list)
|
||||
{
|
||||
mItems = list;
|
||||
mItems.clear();
|
||||
for(const auto& item : list){
|
||||
mItems.append(item);
|
||||
}
|
||||
emit modelItemsChanged();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue