Skip to content
Snippets Groups Projects
Commit bb4d281b authored by SeeLook's avatar SeeLook :musical_note:
Browse files

[Android] Mute clang warning, log wizard launch time

parent 3eb93dac
Branches
Tags
No related merge requests found
...@@ -151,8 +151,12 @@ int main(int argc, char *argv[]) ...@@ -151,8 +151,12 @@ int main(int argc, char *argv[])
nooObj->setQmlEngine(e); nooObj->setQmlEngine(e);
e->load(QUrl(QStringLiteral("qrc:/wizard/Wizard.qml"))); e->load(QUrl(QStringLiteral("qrc:/wizard/Wizard.qml")));
if (firstLoop) { if (firstLoop) {
#if defined (Q_OS_ANDROID)
qDebug() << "Nootka wizard launch time" << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]";
#else
QTextStream o(stdout); QTextStream o(stdout);
o << "\033[01;35m Nootka wizard launch time: " << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]\033[01;00m\n"; o << "\033[01;35m Nootka wizard launch time: " << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]\033[01;00m\n";
#endif
} }
exitCode = a->exec(); exitCode = a->exec();
e->deleteLater(); // Android crashes without a delayed destroy e->deleteLater(); // Android crashes without a delayed destroy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment