tools/hhtracer/main.cpp
changeset 16085 9ad74696ddec
parent 16084 2d65bd46c92f
equal deleted inserted replaced
16084:2d65bd46c92f 16085:9ad74696ddec
     7 int main(int argc, char *argv[]) {
     7 int main(int argc, char *argv[]) {
     8   QGuiApplication app(argc, argv);
     8   QGuiApplication app(argc, argv);
     9 
     9 
    10   QQmlApplicationEngine engine;
    10   QQmlApplicationEngine engine;
    11 
    11 
    12   // Tracer tracer;
       
    13   // engine.rootContext()->setContextProperty(QStringLiteral("tracer"),
       
    14   // &tracer);
       
    15 
       
    16   QObject::connect(
    12   QObject::connect(
    17       &engine, &QQmlApplicationEngine::objectCreationFailed, &app,
    13       &engine, &QQmlApplicationEngine::objectCreationFailed, &app,
    18       []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
    14       []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
    19   engine.loadFromModule("hhtracer", "Main");
    15   engine.loadFromModule("hhtracer", "Main");
    20 
    16