1 | // Copyright (C) 2021 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #include <QtQuick3DAssetImport/private/qssgassetimportmanager_p.h> |
5 | #include <QtWidgets> |
6 | |
7 | #include "inputlistview.h" |
8 | #include "inputtab.h" |
9 | #include "mainwindow.h" |
10 | #include "settingstab.h" |
11 | |
12 | const auto WINDOW_TITLE = "Balsam UI"; |
13 | |
14 | MainWindow::MainWindow(QWidget *parent) : QWidget(parent) |
15 | { |
16 | settingsTab = new SettingsTab; |
17 | generalTab = new InputTab(settingsTab); |
18 | tabWidget = new QTabWidget; |
19 | tabWidget->addTab(widget: generalTab, tr(s: "Input")); |
20 | tabWidget->addTab(widget: settingsTab, tr(s: "Settings")); |
21 | |
22 | QVBoxLayout *mainLayout = new QVBoxLayout; |
23 | mainLayout->addWidget(tabWidget); |
24 | setLayout(mainLayout); |
25 | |
26 | setWindowTitle(tr(s: WINDOW_TITLE)); |
27 | } |
28 |