aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/syntaxhighlighter/main.cpp
blob: 61bd768346e10b7b11d8b0029b438c1b21e47cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QtQuick/QQuickView>
#include <QGuiApplication>
#include "documenthighlighter.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    QQuickView view;
    view.setResizeMode(QQuickView::SizeRootObjectToView);
    view.setSource(QUrl("qrc:///app.qml"));
    view.show();
    return app.exec();
}