AppSettings for android

added debug output for Navigation as debugger does not work for Android
yet
This commit is contained in:
Jan-Martin Raemer 2022-06-01 20:31:47 +02:00
parent 75308b4423
commit 9e7a55fc20
8 changed files with 405 additions and 90 deletions

View file

@ -15,6 +15,12 @@ class MusicPlayer;
class NavigationController : public QObject
{
Q_OBJECT
Q_PROPERTY(QString pDebugOutput READ getDebugOutput NOTIFY debugOutputChanged)
signals:
void debugOutputChanged();
public:
explicit NavigationController(QObject *parent = nullptr);
@ -37,6 +43,8 @@ public:
*/
void setContext(QQmlContext* context);
QString getDebugOutput() const { return mDebugOutput; }
private:
/**
* @brief Register models in context
@ -55,6 +63,12 @@ private:
*/
bool checkContent(const QString& path);
/**
* @brief Set Debug Output. Necessary as Android Debugger does not work yet
* @param text Output to show in ui
*/
void setDebugOutput(const QString& text);
NavigationItemModel* mRootItem;
NavigationListModel* mNavList;
@ -63,6 +77,8 @@ private:
QString mRootPath = ".";
QString mDebugOutput;
QQmlContext* mContext = nullptr;
private slots: