Refactoring and documentation
This commit is contained in:
parent
87a208d305
commit
3fb5be5a74
10 changed files with 149 additions and 75 deletions
|
|
@ -5,20 +5,24 @@
|
|||
|
||||
class NavigationItemModel;
|
||||
|
||||
/**
|
||||
* @brief Model containing navigation items and handling navigation.
|
||||
* @todo Check whether we can use QAbstractListModel here!
|
||||
*/
|
||||
class NavigationListModel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QList<QObject*> pModelItems READ getModelItems NOTIFY modelItemsChanged)
|
||||
Q_PROPERTY( QList<QObject*> pModelItems READ getModelItems NOTIFY modelItemsChanged)
|
||||
Q_PROPERTY(bool pIsBackVisible READ isBackVisible NOTIFY modelItemsChanged)
|
||||
|
||||
signals:
|
||||
void modelItemsChanged();
|
||||
|
||||
public:
|
||||
NavigationListModel(QObject* parent = Q_NULLPTR);
|
||||
explicit NavigationListModel(QObject* parent = nullptr) : QObject(parent) { /* nothing */ }
|
||||
|
||||
QList<QObject*> getModelItems();
|
||||
void setModelItems(QList<NavigationItemModel*> list);
|
||||
void setModelItems(const QList<NavigationItemModel*>& list);
|
||||
|
||||
bool isBackVisible();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue