1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef MAINWINDOW_H
5#define MAINWINDOW_H
6
7#include <QMainWindow>
8#include <QtQuick/QQuickView>
9#include "ui_properties.h"
10#include "ui_import.h"
11
12class SplineEditor;
13
14class MainWindow : public QMainWindow
15{
16 Q_OBJECT
17public:
18 explicit MainWindow(QWidget *parent = nullptr);
19
20 void showQuickView();
21
22public Q_SLOTS:
23 void textEditTextChanged();
24 void importData(int result);
25
26protected:
27 void moveEvent(QMoveEvent *event) override;
28 void resizeEvent(QResizeEvent *event) override;
29 void closeEvent(QCloseEvent *event) override;
30 void initQml();
31
32private:
33 QQuickView quickView;
34 QWidget *m_placeholder;
35 Ui_Properties ui_properties;
36 Ui_ImportDialog ui_import;
37 SplineEditor *m_splineEditor;
38
39};
40
41#endif // MAINWINDOW_H
42

source code of qtdeclarative/tools/qmleasing/mainwindow.h