9import QtQuick.Controls as QQC2
11import org.kde.kirigami as Kirigami
12import org.kde.kirigami.delegates as KirigamiDelegates
13import org.kde.newstuff as NewStuff
27 height: Math.max(Math.round(root.height - (root.height / 4)), Kirigami.Units.gridUnit * 20)
28 width: Math.max(Math.round(root.width - (root.width / 4)), Kirigami.Units.gridUnit * 25)
30 property alias downloadLinks: itemsView.model
32 signal itemPicked(var entry, int downloadItemId, string downloadName)
34 showCloseButton: false
35 title: i18nd("knewstuff6",
"Pick Your Installation Option")
42 headerPositioning: ListView.InlineHeader
44 width: ListView.view.width - ListView.view.leftMargin - ListView.view.rightMargin
47 text:
i18nd(
"knewstuff6",
"Please select the option you wish to install from the list of downloadable items below. If it is unclear which you should chose out of the available options, please contact the author of this item and ask that they clarify this through the naming of the items.")
51 delegate: QQC2.ItemDelegate {
54 width: itemsView.width
56 icon.name: modelData.icon
59 Kirigami.Theme.useAlternateBackgroundColor:
true
66 contentItem: RowLayout {
73 Layout.fillWidth:
true
74 icon.name: delegate.icon.name
76 selected: delegate.highlighted
77 wrapMode: Text.WrapAnywhere
80 text: modelData.formattedSize
81 color: delegate.highlighted
82 ?
Kirigami.Theme.highlightedTextColor
88 text:
i18nd(
"knewstuff6",
"Install")
89 icon.name:
"install-symbolic"
93 component.itemPicked(component.entry, modelData.id, modelData.name);
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.