Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 156 | Item { | |||
---|---|---|---|---|---|
166 | Item { | 166 | Item { | ||
167 | id: thumbnailSourceItem | 167 | id: thumbnailSourceItem | ||
168 | anchors.fill: parent | 168 | anchors.fill: parent | ||
169 | 169 | | |||
170 | readonly property bool isMinimized: isGroup ? IsMinimized == true : isMinimizedParent | 170 | readonly property bool isMinimized: isGroup ? IsMinimized == true : isMinimizedParent | ||
171 | // TODO: this causes XCB error message when being visible the first time | 171 | // TODO: this causes XCB error message when being visible the first time | ||
172 | property int winId: isWin && windows[flatIndex] !== undefined ? windows[flatIndex] : 0 | 172 | property int winId: isWin && windows[flatIndex] !== undefined ? windows[flatIndex] : 0 | ||
173 | 173 | | |||
174 | PlasmaComponents.Highlight { | ||||
175 | anchors.fill: parent | ||||
176 | visible: hoverHandler.containsMouse | ||||
177 | pressed: hoverHandler.containsPress | ||||
178 | } | ||||
179 | | ||||
174 | PlasmaCore.WindowThumbnail { | 180 | PlasmaCore.WindowThumbnail { | ||
175 | anchors.fill: parent | 181 | anchors.fill: parent | ||
182 | anchors.margins: units.smallSpacing | ||||
176 | 183 | | |||
177 | visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized | 184 | visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized | ||
178 | winId: thumbnailSourceItem.winId | 185 | winId: thumbnailSourceItem.winId | ||
179 | } | 186 | } | ||
180 | 187 | | |||
181 | Image { | 188 | Image { | ||
182 | id: albumArtBackground | 189 | id: albumArtBackground | ||
183 | source: albumArt | 190 | source: albumArt | ||
Show All 31 Lines | 219 | PlasmaCore.IconItem { | |||
215 | anchors.horizontalCenter: parent.horizontalCenter | 222 | anchors.horizontalCenter: parent.horizontalCenter | ||
216 | source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : "" | 223 | source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : "" | ||
217 | animated: false | 224 | animated: false | ||
218 | usesPlasmaTheme: false | 225 | usesPlasmaTheme: false | ||
219 | visible: valid | 226 | visible: valid | ||
220 | } | 227 | } | ||
221 | 228 | | |||
222 | ToolTipWindowMouseArea { | 229 | ToolTipWindowMouseArea { | ||
230 | id: hoverHandler | ||||
223 | anchors.fill: parent | 231 | anchors.fill: parent | ||
224 | rootTask: parentTask | 232 | rootTask: parentTask | ||
225 | modelIndex: submodelIndex | 233 | modelIndex: submodelIndex | ||
226 | winId: thumbnailSourceItem.winId | 234 | winId: thumbnailSourceItem.winId | ||
227 | } | 235 | } | ||
228 | } | 236 | } | ||
229 | 237 | | |||
230 | 238 | | |||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |