Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemListDialog.qml
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 42 | onWindowDeactivated: { | |||
---|---|---|---|---|---|
43 | if (!aboutToBeDestroyed) { | 43 | if (!aboutToBeDestroyed) { | ||
44 | plasmoid.expanded = false; | 44 | plasmoid.expanded = false; | ||
45 | } | 45 | } | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | mainItem: ItemListView { | 48 | mainItem: ItemListView { | ||
49 | id: itemListView | 49 | id: itemListView | ||
50 | 50 | | |||
51 | height: model !== undefined ? Math.min(((Math.floor((itemDialog.availableScreenRectForItem(itemListView).height | 51 | height: itemDialog.model !== undefined ? Math.min(((Math.floor((itemDialog.availableScreenRectForItem(itemListView).height | ||
52 | - itemDialog.margins.top - itemDialog.margins.bottom) / itemHeight) - 1) | 52 | - itemDialog.margins.top - itemDialog.margins.bottom) / itemHeight) - 1) | ||
53 | * itemHeight) - (model.separatorCount * itemHeight) + (model.separatorCount * separatorHeight), | 53 | * itemHeight) - (itemDialog.model.separatorCount * itemHeight) + (itemDialog.model.separatorCount * separatorHeight), | ||
54 | ((model.count - model.separatorCount) * itemHeight) + (model.separatorCount * separatorHeight)) : 0 | 54 | ((itemDialog.model.count - itemDialog.model.separatorCount) * itemHeight) + (itemDialog.model.separatorCount * separatorHeight)) : 0 | ||
55 | 55 | | |||
56 | iconsEnabled: true | 56 | iconsEnabled: true | ||
57 | 57 | | |||
58 | dialog: itemDialog | 58 | dialog: itemDialog | ||
59 | 59 | | |||
60 | model: funnelModel | 60 | model: funnelModel | ||
61 | 61 | | |||
62 | Kicker.FunnelModel { | 62 | Kicker.FunnelModel { | ||
Show All 28 Lines |