Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/main.qml
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 29 | Item { | |||
---|---|---|---|---|---|
71 | Component { | 71 | Component { | ||
72 | id: menuRepresentation | 72 | id: menuRepresentation | ||
73 | MenuRepresentation {} | 73 | MenuRepresentation {} | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | Kicker.RootModel { | 76 | Kicker.RootModel { | ||
77 | id: rootModel | 77 | id: rootModel | ||
78 | 78 | | |||
79 | autoPopulate: false | ||||
80 | | ||||
79 | appNameFormat: plasmoid.configuration.appNameFormat | 81 | appNameFormat: plasmoid.configuration.appNameFormat | ||
80 | flat: isDash ? true : plasmoid.configuration.limitDepth | 82 | flat: isDash ? true : plasmoid.configuration.limitDepth | ||
81 | sorted: plasmoid.configuration.alphaSort | 83 | sorted: plasmoid.configuration.alphaSort | ||
82 | showSeparators: !isDash | 84 | showSeparators: !isDash | ||
83 | appletInterface: plasmoid | 85 | appletInterface: plasmoid | ||
84 | 86 | | |||
85 | showAllApps: isDash | 87 | showAllApps: isDash | ||
86 | showRecentApps: plasmoid.configuration.showRecentApps | 88 | showRecentApps: plasmoid.configuration.showRecentApps | ||
Show All 9 Lines | |||||
96 | } | 98 | } | ||
97 | 99 | | |||
98 | onShowRecentContactsChanged: { | 100 | onShowRecentContactsChanged: { | ||
99 | plasmoid.configuration.showRecentContacts = showRecentContacts; | 101 | plasmoid.configuration.showRecentContacts = showRecentContacts; | ||
100 | } | 102 | } | ||
101 | 103 | | |||
102 | Component.onCompleted: { | 104 | Component.onCompleted: { | ||
103 | favoritesModel.favorites = plasmoid.configuration.favoriteApps; | 105 | favoritesModel.favorites = plasmoid.configuration.favoriteApps; | ||
106 | rootModel.refresh(); | ||||
104 | } | 107 | } | ||
105 | } | 108 | } | ||
106 | 109 | | |||
107 | Connections { | 110 | Connections { | ||
108 | target: globalFavorites | 111 | target: globalFavorites | ||
109 | 112 | | |||
110 | onFavoritesChanged: { | 113 | onFavoritesChanged: { | ||
111 | plasmoid.configuration.favoriteApps = target.favorites; | 114 | plasmoid.configuration.favoriteApps = target.favorites; | ||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |