29 lines
549 B
C++
29 lines
549 B
C++
#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
|