Changeset View
Changeset View
Standalone View
Standalone View
plasma/package/contents/ui/main.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 44 | Plasmoid.fullRepresentation: ColumnLayout { | |||
---|---|---|---|---|---|
51 | 51 | | |||
52 | // PlasmaExtras.Heading { | 52 | // PlasmaExtras.Heading { | ||
53 | // text: i18nd("plasmavault-kde", "Encrypted vaults") | 53 | // text: i18nd("plasmavault-kde", "Encrypted vaults") | ||
54 | // } | 54 | // } | ||
55 | 55 | | |||
56 | ListView { | 56 | ListView { | ||
57 | id: vaultsList | 57 | id: vaultsList | ||
58 | 58 | | |||
59 | | ||||
60 | model: | 59 | model: | ||
61 | PlasmaCore.SortFilterModel { | 60 | PlasmaCore.SortFilterModel { | ||
62 | sortRole: "name" | 61 | sortRole: "name" | ||
63 | sourceModel: vaultsModel | 62 | sourceModel: vaultsModel | ||
64 | } | 63 | } | ||
65 | 64 | | |||
66 | currentIndex: -1 | 65 | currentIndex: -1 | ||
67 | 66 | | |||
68 | Layout.fillWidth: true | 67 | Layout.fillWidth: true | ||
69 | Layout.fillHeight: true | 68 | Layout.fillHeight: true | ||
70 | 69 | | |||
71 | highlight: PlasmaComponents.Highlight { | 70 | highlight: PlasmaComponents.Highlight {} | ||
72 | id: highlight | 71 | highlightMoveDuration: units.longDuration | ||
73 | } | 72 | highlightResizeDuration: units.longDuration | ||
74 | 73 | delegate: VaultItem {} | |||
75 | delegate: VaultItem { | | |||
76 | icon: model.icon | | |||
77 | name: model.name | | |||
78 | message: model.message | | |||
79 | isOpened: model.isOpened | | |||
80 | isEnabled: model.isEnabled | | |||
81 | device: model.device | | |||
82 | isOfflineOnly: model.isOfflineOnly | | |||
83 | | ||||
84 | width: parent.width | | |||
85 | | ||||
86 | onItemExpanded: { | | |||
87 | if (expandedItem != null) { | | |||
88 | expandedItem.collapse(); | | |||
89 | } | | |||
90 | expandedItem = item; | | |||
91 | } | | |||
92 | } | | |||
93 | 74 | | |||
94 | visible: count > 0 | 75 | visible: count > 0 | ||
95 | 76 | | |||
96 | interactive: false | 77 | interactive: false | ||
97 | } | 78 | } | ||
98 | 79 | | |||
99 | PlasmaComponents.Button { | 80 | PlasmaComponents.Button { | ||
100 | id: buttonCreateNewVault | 81 | id: buttonCreateNewVault | ||
Show All 9 Lines |