Cura/resources/qml/Dialogs/LicenseDialog.qml
Erwan MATHIEU 6efbcb4ff6 Apply suggested review changes
CURA-12400
2025-02-19 15:09:12 +01:00

44 lines
1011 B
QML

// Copyright (c) 2025 UltiMaker
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.4
import QtQuick.Controls 2.9
import QtQuick.Layouts 1.3
import UM 1.6 as UM
import Cura 1.6 as Cura
UM.Dialog
{
readonly property UM.I18nCatalog catalog: UM.I18nCatalog { name: "cura" }
property var name
property var version
property var license
id: base
title: catalog.i18nc("@title:window The argument is a package name, and the second is the version.", "License for %1 %2").arg(name).arg(version)
minimumWidth: 500 * screenScaleFactor
Flickable
{
anchors.fill: parent
contentHeight: labelLicense.height
ScrollBar.vertical: UM.ScrollBar { }
UM.Label
{
id: labelLicense
width: parent.width
text: license
}
}
rightButtons: Cura.TertiaryButton
{
id: closeButton
text: catalog.i18nc("@action:button", "Close")
onClicked: reject()
}
}