2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2022-05-06 09:52:21 +03:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
|
|
|
|
|
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
|
|
|
|
|
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
|
|
|
|
|
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
|
|
|
|
|
*/
|
2022-06-20 23:51:16 +02:00
|
|
|
|
2022-05-06 09:52:21 +03:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
2022-06-20 23:51:16 +02:00
|
|
|
import LandingPageApi
|
|
|
|
|
import LandingPage as Theme
|
2022-05-06 09:52:21 +03:00
|
|
|
|
|
|
|
|
Rectangle {
|
2022-06-20 23:51:16 +02:00
|
|
|
id: root
|
2022-05-06 09:52:21 +03:00
|
|
|
|
2022-06-20 23:51:16 +02:00
|
|
|
color: Theme.Colors.backgroundSecondary
|
|
|
|
|
height: column.childrenRect.height + (2 * Theme.Values.spacing)
|
2022-05-06 09:52:21 +03:00
|
|
|
|
2022-06-20 23:51:16 +02:00
|
|
|
Connections {
|
|
|
|
|
target: installButton
|
|
|
|
|
function onClicked() { LandingPageApi.installQds() }
|
2022-05-06 09:52:21 +03:00
|
|
|
}
|
|
|
|
|
|
2022-06-20 23:51:16 +02:00
|
|
|
Column {
|
|
|
|
|
id: column
|
|
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
|
|
PageText {
|
|
|
|
|
id: statusText
|
|
|
|
|
width: parent.width
|
|
|
|
|
topPadding: 0
|
|
|
|
|
padding: Theme.Values.spacing
|
2023-02-10 16:15:49 +01:00
|
|
|
text: qsTranslate("QtC::QmlProjectManager", "No Qt Design Studio installation found")
|
2022-06-20 23:51:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PageText {
|
|
|
|
|
id: suggestionText
|
|
|
|
|
width: parent.width
|
|
|
|
|
padding: Theme.Values.spacing
|
2023-02-10 16:15:49 +01:00
|
|
|
text: qsTranslate("QtC::QmlProjectManager", "Would you like to install it now?")
|
2022-06-20 23:51:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PushButton {
|
|
|
|
|
id: installButton
|
2023-02-10 16:15:49 +01:00
|
|
|
text: qsTranslate("QtC::QmlProjectManager", "Install")
|
2022-06-20 23:51:16 +02:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
2022-05-06 09:52:21 +03:00
|
|
|
}
|
|
|
|
|
}
|