mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Change FileSelector to not directly expose combobox alias
This commit is contained in:
parent
a985666e53
commit
393e48ab88
@ -9,7 +9,8 @@ ColumnLayout {
|
||||
id: root
|
||||
Layout.preferredWidth: 250
|
||||
|
||||
property alias comboBox: cb
|
||||
property string name: licenseModel.get(cb.currentIndex).name
|
||||
property string licenseFile: licenseModel.get(cb.currentIndex).licenseFile
|
||||
|
||||
HeadlineSection {
|
||||
Layout.fillWidth: true
|
||||
@ -24,47 +25,47 @@ ColumnLayout {
|
||||
ComboBox {
|
||||
id: cb
|
||||
Layout.fillWidth: true
|
||||
textRole: "text"
|
||||
textRole: "name"
|
||||
model: ListModel {
|
||||
id: licenseModel
|
||||
ListElement {
|
||||
text: "Create Commons - Attribution-ShareAlike 4.0"
|
||||
name: "Create Commons - Attribution-ShareAlike 4.0"
|
||||
description: qsTr("Share — copy and redistribute the material in any medium or format. Adapt — remix, transform, and build upon the material for any purpose, even commercially.")
|
||||
tldrlegal: "https://tldrlegal.com/license/creative-commons-attribution-sharealike-4.0-international-(cc-by-sa-4.0)"
|
||||
licenseFile: ":/assets/wizards/License_CC_Attribution-ShareAlike_4.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "Create Commons - Attribution 4.0"
|
||||
name: "Create Commons - Attribution 4.0"
|
||||
description: qsTr("You grant other to remix your work and change the license to their linking.")
|
||||
tldrlegal: "https://tldrlegal.com/license/creative-commons-attribution-4.0-international-(cc-by-4)"
|
||||
licenseFile: ":/assets/wizards/License_CC_Attribution_4.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "Create Commons - Attribution-NonCommercial-ShareAlike 4.0"
|
||||
name: "Create Commons - Attribution-NonCommercial-ShareAlike 4.0"
|
||||
description: qsTr("Share — copy and redistribute the material in any medium or format. Adapt — remix, transform, and build upon the material. You are not allowed to use it commercially! ")
|
||||
tldrlegal: "https://tldrlegal.com/license/creative-commons-attribution-noncommercial-sharealike-4.0-international-(cc-by-nc-sa-4.0)"
|
||||
licenseFile: ":/assets/wizards/License_CC_Attribution-NonCommercial-ShareAlike_4.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "Create Commons - CC0 1.0 Universal Public Domain"
|
||||
name: "Create Commons - CC0 1.0 Universal Public Domain"
|
||||
description: qsTr("You allow everyone do do anything with your work.")
|
||||
tldrlegal: "https://tldrlegal.com/license/creative-commons-cc0-1.0-universal"
|
||||
licenseFile: ":/assets/wizards/License_CC0_1.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "Open Source - Apache License 2.0"
|
||||
name: "Open Source - Apache License 2.0"
|
||||
description: qsTr("You grant other to remix your work and change the license to their linking.")
|
||||
tldrlegal: "https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)"
|
||||
licenseFile: ":/assets/wizards/License_Apache_2.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "Open Source - General Public License 3.0"
|
||||
name: "Open Source - General Public License 3.0"
|
||||
description: qsTr("You grant other to remix your work but it must remain under the GPLv3. We recommend this license for all code wallpaper!")
|
||||
tldrlegal: "https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)"
|
||||
licenseFile: ":/assets/wizards/License_GPL_3.0.txt"
|
||||
}
|
||||
ListElement {
|
||||
text: "All rights reserved"
|
||||
name: "All rights reserved"
|
||||
description: qsTr("You do not share any rights and nobody is allowed to use remix it (Not recommended). Can also used to credit work others.")
|
||||
tldrlegal: ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user