Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | 152 | PlasmaCore.ToolTipArea { | |||
---|---|---|---|---|---|
153 | id: toolTip | 153 | id: toolTip | ||
154 | 154 | | |||
155 | active: (plasmoid.configuration.toolTips && popupDialog == null && !model.blank) | 155 | active: (plasmoid.configuration.toolTips && popupDialog == null && !model.blank) | ||
156 | interactive: false | 156 | interactive: false | ||
157 | location: root.useListViewMode ? (plasmoid.location === PlasmaCore.Types.LeftEdge ? PlasmaCore.Types.LeftEdge : PlasmaCore.Types.RightEdge) : plasmoid.location | 157 | location: root.useListViewMode ? (plasmoid.location === PlasmaCore.Types.LeftEdge ? PlasmaCore.Types.LeftEdge : PlasmaCore.Types.RightEdge) : plasmoid.location | ||
158 | 158 | | |||
159 | onContainsMouseChanged: { | 159 | onContainsMouseChanged: { | ||
160 | if (containsMouse && !model.blank) { | 160 | if (containsMouse && !model.blank) { | ||
161 | if (toolTip.active) { | ||||
161 | toolTip.icon = model.decoration; | 162 | toolTip.icon = model.decoration; | ||
162 | toolTip.mainText = model.display; | 163 | toolTip.mainText = model.display; | ||
163 | 164 | | |||
164 | if (model.size !== undefined) { | 165 | if (model.size !== undefined) { | ||
165 | toolTip.subText = model.type + "\n" + model.size; | 166 | toolTip.subText = model.type + "\n" + model.size; | ||
166 | } else { | 167 | } else { | ||
167 | toolTip.subText = model.type; | 168 | toolTip.subText = model.type; | ||
168 | } | 169 | } | ||
170 | } | ||||
169 | 171 | | |||
170 | main.GridView.view.hoveredItem = main; | 172 | main.GridView.view.hoveredItem = main; | ||
171 | } | 173 | } | ||
172 | } | 174 | } | ||
173 | 175 | | |||
174 | states: [ | 176 | states: [ | ||
175 | State { // icon view | 177 | State { // icon view | ||
176 | when: !root.useListViewMode | 178 | when: !root.useListViewMode | ||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |