forked from qt-creator/qt-creator
The original text before the SPDX change did not include a potential GPL-4.0, but GPL-2.0. While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR LGPL-3.0/LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only/g" {} ; Change-Id: Id5e40d3e174ecea660a09e88a02bd57505f1875d Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
23 lines
555 B
Python
23 lines
555 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2020 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
import os
|
|
import sys
|
|
|
|
from PySide2.QtGui import QGuiApplication
|
|
from PySide2.QtQml import QQmlApplicationEngine
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = QGuiApplication(sys.argv)
|
|
|
|
engine = QQmlApplicationEngine()
|
|
engine.load(os.path.join(os.path.dirname(__file__), "main.qml"))
|
|
|
|
if not engine.rootObjects():
|
|
sys.exit(-1)
|
|
|
|
sys.exit(app.exec_())
|