added basic models and controllers
This commit is contained in:
parent
269b48ed9d
commit
e401b71788
9 changed files with 222 additions and 2 deletions
29
LenaPi/controllers/NavigationController.h
Normal file
29
LenaPi/controllers/NavigationController.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef NAVIGATIONCONTROLLER_H
|
||||
#define NAVIGATIONCONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QQmlContext>
|
||||
|
||||
class NavigationItemModel;
|
||||
class NavigationListModel;
|
||||
|
||||
class NavigationController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
NavigationController(QObject *parent = Q_NULLPTR);
|
||||
|
||||
void init(const QString & rootPath);
|
||||
|
||||
void setContext(QQmlContext* context);
|
||||
|
||||
private:
|
||||
void setContextProperties();
|
||||
|
||||
NavigationItemModel* mRootItem;
|
||||
NavigationListModel* mNavList;
|
||||
|
||||
QQmlContext* mContext;
|
||||
};
|
||||
|
||||
#endif // NAVIGATIONCONTROLLER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue