Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 140 | Badge { | |||
---|---|---|---|---|---|
142 | height: units.iconSizes.smallMedium | 142 | height: units.iconSizes.smallMedium | ||
143 | visible: flatIndex === 0 && smartLauncherCountVisible | 143 | visible: flatIndex === 0 && smartLauncherCountVisible | ||
144 | number: smartLauncherCount | 144 | number: smartLauncherCount | ||
145 | } | 145 | } | ||
146 | } | 146 | } | ||
147 | 147 | | |||
148 | // close button | 148 | // close button | ||
149 | PlasmaComponents.ToolButton { | 149 | PlasmaComponents.ToolButton { | ||
150 | id: closeButton | ||||
150 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | 151 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | ||
151 | visible: isWin | 152 | visible: isWin | ||
152 | iconSource: "window-close" | 153 | iconSource: "window-close" | ||
153 | onClicked: { | 154 | onClicked: { | ||
154 | backend.cancelHighlightWindows(); | 155 | backend.cancelHighlightWindows(); | ||
155 | tasksModel.requestClose(submodelIndex); | 156 | tasksModel.requestClose(submodelIndex); | ||
156 | } | 157 | } | ||
157 | 158 | | |||
Show All 14 Lines | 163 | Item { | |||
172 | Item { | 173 | Item { | ||
173 | id: thumbnailSourceItem | 174 | id: thumbnailSourceItem | ||
174 | anchors.fill: parent | 175 | anchors.fill: parent | ||
175 | 176 | | |||
176 | readonly property bool isMinimized: isGroup ? IsMinimized == true : isMinimizedParent | 177 | readonly property bool isMinimized: isGroup ? IsMinimized == true : isMinimizedParent | ||
177 | // TODO: this causes XCB error message when being visible the first time | 178 | // TODO: this causes XCB error message when being visible the first time | ||
178 | property int winId: isWin && windows[flatIndex] !== undefined ? windows[flatIndex] : 0 | 179 | property int winId: isWin && windows[flatIndex] !== undefined ? windows[flatIndex] : 0 | ||
179 | 180 | | |||
181 | PlasmaComponents.Highlight { | ||||
182 | anchors.fill: parent | ||||
183 | visible: hoverHandler.containsMouse | ||||
184 | pressed: hoverHandler.containsPress | ||||
185 | } | ||||
186 | | ||||
180 | PlasmaCore.WindowThumbnail { | 187 | PlasmaCore.WindowThumbnail { | ||
181 | anchors.fill: parent | 188 | anchors.fill: parent | ||
189 | anchors.margins: units.smallSpacing | ||||
182 | 190 | | |||
183 | visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized | 191 | visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized | ||
184 | winId: thumbnailSourceItem.winId | 192 | winId: thumbnailSourceItem.winId | ||
185 | } | 193 | } | ||
186 | 194 | | |||
187 | Image { | 195 | Image { | ||
188 | id: albumArtBackground | 196 | id: albumArtBackground | ||
189 | source: albumArt | 197 | source: albumArt | ||
Show All 31 Lines | 226 | PlasmaCore.IconItem { | |||
221 | anchors.horizontalCenter: parent.horizontalCenter | 229 | anchors.horizontalCenter: parent.horizontalCenter | ||
222 | source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : "" | 230 | source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : "" | ||
223 | animated: false | 231 | animated: false | ||
224 | usesPlasmaTheme: false | 232 | usesPlasmaTheme: false | ||
225 | visible: valid | 233 | visible: valid | ||
226 | } | 234 | } | ||
227 | 235 | | |||
228 | ToolTipWindowMouseArea { | 236 | ToolTipWindowMouseArea { | ||
237 | id: hoverHandler | ||||
229 | anchors.fill: parent | 238 | anchors.fill: parent | ||
230 | rootTask: parentTask | 239 | rootTask: parentTask | ||
231 | modelIndex: submodelIndex | 240 | modelIndex: submodelIndex | ||
232 | winId: thumbnailSourceItem.winId | 241 | winId: thumbnailSourceItem.winId | ||
233 | } | 242 | } | ||
234 | } | 243 | } | ||
235 | 244 | | |||
236 | 245 | | |||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |