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
21
LenaPi/models/UiStateModel.cpp
Normal file
21
LenaPi/models/UiStateModel.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "UiStateModel.h"
|
||||
|
||||
UiStateModel::UiStateModel(QObject *parent) : QObject(parent)
|
||||
{
|
||||
showNavigation();
|
||||
}
|
||||
|
||||
QUrl UiStateModel::getSource() const
|
||||
{
|
||||
return mSource;
|
||||
}
|
||||
|
||||
void UiStateModel::showMusicPlayer(){
|
||||
mSource = QUrl("MusicPlayer.qml");
|
||||
emit sourceChanged();
|
||||
}
|
||||
|
||||
void UiStateModel::showNavigation(){
|
||||
mSource = QUrl("Navigation.qml");
|
||||
emit sourceChanged();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue