AppSettings for android
added debug output for Navigation as debugger does not work for Android yet
This commit is contained in:
parent
75308b4423
commit
9e7a55fc20
8 changed files with 405 additions and 90 deletions
|
|
@ -21,11 +21,17 @@ NavigationController::NavigationController(QObject *parent) : QObject(parent),
|
|||
});
|
||||
}
|
||||
|
||||
void NavigationController::setDebugOutput(const QString& text)
|
||||
{
|
||||
mDebugOutput = text;
|
||||
emit debugOutputChanged();
|
||||
}
|
||||
|
||||
void NavigationController::init(const QString &rootPath)
|
||||
{
|
||||
auto rootDir = QDir(rootPath);
|
||||
if(!rootDir.exists()) return;
|
||||
mRootPath = rootPath;
|
||||
mRootPath = rootPath;
|
||||
|
||||
add(mRootPath, mRootItem);
|
||||
|
||||
|
|
@ -49,6 +55,7 @@ void NavigationController::setContextProperties()
|
|||
mContext->setContextProperty("navigationList", mNavList);
|
||||
mContext->setContextProperty("uiStateModel", mUiState);
|
||||
mContext->setContextProperty("musicModel", mMediaPlayer);
|
||||
mContext->setContextProperty("debug", this);
|
||||
}
|
||||
|
||||
void NavigationController::add(const QString &path, NavigationItemModel *parentItem)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue