mobile: turn testqml into a std::string

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-28 20:07:39 +01:00 committed by Michael Keller
parent 9509eb6876
commit a133c6c4db
3 changed files with 10 additions and 8 deletions

View file

@ -133,8 +133,8 @@ void run_mobile_ui(double initial_font_size)
qmlRegisterUncreatableType<QMLManager>("org.subsurfacedivelog.mobile",1,0,"ExportType","Enum is not a type");
#ifdef SUBSURFACE_MOBILE_DESKTOP
if (testqml) {
QString fileLoad(testqml);
if (!testqml.empty()) {
QString fileLoad(testqml.c_str());
fileLoad += "/main.qml";
engine.load(QUrl(fileLoad));
} else {