Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 87 | PlasmaCore.IconItem { | |||
---|---|---|---|---|---|
95 | visible: !isWin | 95 | visible: !isWin | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | // all textlabels | 98 | // all textlabels | ||
99 | ColumnLayout { | 99 | ColumnLayout { | ||
100 | spacing: 0 | 100 | spacing: 0 | ||
101 | // app name | 101 | // app name | ||
102 | PlasmaExtras.Heading { | 102 | PlasmaExtras.Heading { | ||
103 | id: appNameHeading | ||||
103 | level: 3 | 104 | level: 3 | ||
104 | maximumLineCount: 1 | 105 | maximumLineCount: 1 | ||
105 | lineHeight: 1 | 106 | lineHeight: 1 | ||
106 | Layout.fillWidth: true | 107 | Layout.fillWidth: true | ||
107 | elide: Text.ElideRight | 108 | elide: Text.ElideRight | ||
108 | text: appName | 109 | text: appName | ||
109 | opacity: flatIndex == 0 | 110 | opacity: flatIndex == 0 | ||
110 | visible: text.length !== 0 | 111 | visible: text.length !== 0 | ||
111 | } | 112 | } | ||
112 | // window title | 113 | // window title | ||
113 | PlasmaExtras.Heading { | 114 | PlasmaExtras.Heading { | ||
114 | id: winTitle | 115 | id: winTitle | ||
115 | level: 5 | 116 | level: 5 | ||
116 | maximumLineCount: 1 | 117 | maximumLineCount: 1 | ||
117 | lineHeight: 1 | 118 | lineHeight: 1 | ||
118 | Layout.fillWidth: true | 119 | Layout.fillWidth: true | ||
119 | elide: Text.ElideRight | 120 | elide: Text.ElideRight | ||
120 | text: generateTitle() | 121 | text: generateTitle() | ||
121 | opacity: 0.75 | 122 | opacity: 0.75 | ||
122 | visible: !hasPlayer && text.length !== 0 | 123 | visible: !hasPlayer && text.length !== 0 && text !== appNameHeading.text | ||
filipf: I think they want us using !== now | |||||
123 | } | 124 | } | ||
124 | // subtext | 125 | // subtext | ||
125 | PlasmaExtras.Heading { | 126 | PlasmaExtras.Heading { | ||
126 | level: 6 | 127 | level: 6 | ||
127 | maximumLineCount: 1 | 128 | maximumLineCount: 1 | ||
128 | lineHeight: 1 | 129 | lineHeight: 1 | ||
129 | Layout.fillWidth: true | 130 | Layout.fillWidth: true | ||
130 | elide: Text.ElideRight | 131 | elide: Text.ElideRight | ||
131 | text: isWin ? generateSubText() : "" | 132 | text: isWin ? generateSubText() : "" | ||
132 | opacity: 0.6 | 133 | opacity: 0.6 | ||
133 | visible: text.length !== 0 | 134 | visible: text.length !== 0 && text !== appNameHeading.text | ||
134 | } | 135 | } | ||
135 | } | 136 | } | ||
136 | 137 | | |||
137 | // Count badge. | 138 | // Count badge. | ||
138 | // The badge itself is inside an item to better center the text in the bubble | 139 | // The badge itself is inside an item to better center the text in the bubble | ||
139 | Item { | 140 | Item { | ||
140 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | 141 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | ||
141 | Layout.preferredHeight: closeButton.height | 142 | Layout.preferredHeight: closeButton.height | ||
▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines |
I think they want us using !== now