aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/classes/python/file.py
blob: 6b16b9d9527e93d32168e714076829e1db0f8b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This Python file uses the following encoding: utf-8
@if '%{Module}' !== '<None>'
    @if '%{ImportQtCore}' !== ''
from %{Module} import QtCore
    @endif
    @if '%{ImportQtWidgets}' !== ''
from %{Module} import QtWidgets
    @endif
    @if '%{ImportQtQuick}' !== ''
from %{Module} import QtQuick
    @endif
@endif


@if '%{Base}'
class %{Class}(%{FullBase}):
@else
class %{Class}:
@endif
    def __init__(self):
@if %{JS: [ "QObject", "QWidget", "QMainWindow", "QQuickItem" ].indexOf("%Base")} >= 0
        %{FullBase}.__init__(self)
@endif
        pass