finished navigation including music player and navigate back
functionality
This commit is contained in:
parent
d6cb29ae7b
commit
6f5c9138a8
12 changed files with 213 additions and 11 deletions
28
LenaPi/models/UiStateModel.h
Normal file
28
LenaPi/models/UiStateModel.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef UISTATEMODEL_H
|
||||
#define UISTATEMODEL_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
|
||||
class UiStateModel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QUrl pSource READ getSource NOTIFY sourceChanged)
|
||||
|
||||
signals:
|
||||
void sourceChanged();
|
||||
|
||||
public:
|
||||
UiStateModel(QObject *parent = Q_NULLPTR);
|
||||
|
||||
QUrl getSource() const;
|
||||
|
||||
void showMusicPlayer();
|
||||
void showNavigation();
|
||||
|
||||
private:
|
||||
QUrl mSource;
|
||||
};
|
||||
|
||||
#endif // UISTATEMODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue