Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
rpasichnyk committed Jan 15, 2021
1 parent 7afcf49 commit 83dd70d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.cpp
Expand Up @@ -18,6 +18,7 @@
*/

#include "mainwindow.h"
#include "utility.h"
#ifdef USE_MOBILE
#include "mobile/qmlui.h"
#endif
Expand Down
4 changes: 4 additions & 0 deletions mainwindow.cpp
Expand Up @@ -1831,11 +1831,15 @@ void MainWindow::on_actionGamepadControl_triggered(bool checked)

void MainWindow::on_actionLoadMeters_triggered()
{
#ifdef USE_MOBILE
mQmlUi.startCustomGui(mVesc);
mQmlUi.reloadCustomGui("qrc:/res/qml/Meters.qml");
#endif
}

void MainWindow::on_actionCloseCustomGUI_triggered()
{
#ifdef USE_MOBILE
mQmlUi.stopCustomGui();
#endif
}
5 changes: 4 additions & 1 deletion mainwindow.h
Expand Up @@ -28,7 +28,9 @@
#include <QMap>
#include "vescinterface.h"
#include "widgets/pagelistitem.h"
#ifdef USE_MOBILE
#include "mobile/qmlui.h"
#endif

#include "pages/pagewelcome.h"
#include "pages/pageconnection.h"
Expand Down Expand Up @@ -162,8 +164,9 @@ private slots:
bool mMcConfRead;
bool mAppConfRead;
QMap<QString, int> mPageNameIdList;
#ifdef USE_MOBILE
QmlUi mQmlUi;

#endif
PageWelcome *mPageWelcome;
PageConnection *mPageConnection;
PageDataAnalysis *mPageDataAnalysis;
Expand Down

0 comments on commit 83dd70d

Please sign in to comment.