mirror of
https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
synced 2025-06-04 14:21:33 +00:00
Add some testing code to the QML file to make it do what we'd like.
This commit is contained in:
parent
61b3436848
commit
f8bf449335
@ -8,16 +8,33 @@ import QtQuick.Controls.Material 2.1
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
property bool isRegularInstall: true
|
property bool isRegularInstall: true
|
||||||
property bool isFullInstall: true
|
|
||||||
|
|
||||||
function updatePackageSelections(objectName, checked) {
|
function updatePackageSelections(objectName, checked) {
|
||||||
var newMap = JSON.parse(JSON.stringify(packageSelect.packageSelections));
|
var newMap = JSON.parse(JSON.stringify(packageSelect.packageSelections));
|
||||||
newMap[objectName] = checked;
|
newMap[objectName] = checked;
|
||||||
packageSelect.packageSelections = newMap;
|
packageSelect.packageSelections = newMap;
|
||||||
|
element.enabled = true;
|
||||||
|
thunderbird.enabled = true;
|
||||||
|
virtManager.enabled = true;
|
||||||
|
krita.enabled = true;
|
||||||
if (objectName === "minimalInstall") {
|
if (objectName === "minimalInstall") {
|
||||||
isMinimalInstall = checked;
|
isMinimalInstall = checked;
|
||||||
|
element.checked = false;
|
||||||
|
thunderbird.checked = false;
|
||||||
|
virtManager.checked = false;
|
||||||
|
krita.checked = false;
|
||||||
|
element.enabled = false;
|
||||||
|
thunderbird.enabled = false;
|
||||||
|
virtManager.enabled = false;
|
||||||
|
krita.enabled = false;
|
||||||
} else if (objectName === "fullInstall") {
|
} else if (objectName === "fullInstall") {
|
||||||
isFullInstall = checked;
|
isMinimalInstall = false;
|
||||||
|
element.checked = true;
|
||||||
|
thunderbird.checked = true;
|
||||||
|
virtManager.checked = true;
|
||||||
|
krita.checked = true;
|
||||||
|
} else {
|
||||||
|
isMinimalInstall = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,12 +47,14 @@ Item {
|
|||||||
font.pointSize: 14
|
font.pointSize: 14
|
||||||
}
|
}
|
||||||
RadioButton {
|
RadioButton {
|
||||||
checked: true
|
|
||||||
text: qsTr("Full Installation")
|
text: qsTr("Full Installation")
|
||||||
objectName: "fullInstall"
|
objectName: "fullInstall"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
indicator.width: 20
|
indicator.width: 20
|
||||||
indicator.height: 20
|
indicator.height: 20
|
||||||
|
onClicked: {
|
||||||
|
updatePackageSelections(objectName, checked);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("All applications in the Normal Installation, and all extra third-party packages listed below.")
|
text: qsTr("All applications in the Normal Installation, and all extra third-party packages listed below.")
|
||||||
|
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -10,6 +10,7 @@ calamares-settings-ubuntu (1:24.04.8) UNRELEASED; urgency=medium
|
|||||||
minimal install is selected.
|
minimal install is selected.
|
||||||
* Update snaps used for Krita.
|
* Update snaps used for Krita.
|
||||||
* Install the QML file to the proper directory.
|
* Install the QML file to the proper directory.
|
||||||
|
* Add some testing code to the QML file to make it do what we'd like.
|
||||||
|
|
||||||
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 22 Nov 2023 15:22:22 -0600
|
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 22 Nov 2023 15:22:22 -0600
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user