Skip to content
Snippets Groups Projects
Commit 6b00c427 authored by SeeLook's avatar SeeLook
Browse files

Display launch time, minor

parent 34f773ec
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,6 @@
#include <QtGui/qicon.h>
#include <QtQml/qqmlapplicationengine.h>
#include <QtQml/qqmlcontext.h>
#include <QtCore/qdebug.h>
#include <QtCore/qtranslator.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qpointer.h>
......@@ -38,6 +37,9 @@
#include <Android/tandroid.h>
#endif
#include <QtCore/qdebug.h>
#include <QtCore/qelapsedtimer.h>
static QString logFile;
......@@ -79,6 +81,9 @@ int main(int argc, char *argv[])
qDebug() << "==== NOOTKA LOG =======\n" << QDateTime::currentDateTime().toString();
#endif
QElapsedTimer startElapsed;
startElapsed.start();
QTranslator qtTranslator;
QTranslator nooTranslator;
QPointer<QApplication> a = nullptr;
......@@ -146,6 +151,10 @@ int main(int argc, char *argv[])
// w->openFile(QString::fromLocal8Bit(argv[argc - 1]));
#endif
}
if (firstTime) {
QTextStream o(stdout);
o << "\033[01;35m[Nootka launch time: " << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]\033[01;00m\n";
}
firstTime = false;
exitCode = a->exec();
delete e;
......
......@@ -32,7 +32,7 @@ ToolBar {
menu = c.createObject(metroButt)
}
menu.open()
metroButt.focus = false
metroButt.focus = true
}
background: Rectangle {
anchors.fill: parent; color: activPal.window
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment