Changeset View
Changeset View
Standalone View
Standalone View
lib/qml/ResultDelegate.qml
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 140 | } else if (listView.mouseMovedGlobally()) { | |||
---|---|---|---|---|---|
142 | listView.currentIndex = index | 142 | listView.currentIndex = index | ||
143 | } | 143 | } | ||
144 | } | 144 | } | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | PlasmaComponents.Label { | 147 | PlasmaComponents.Label { | ||
148 | id: typeText | 148 | id: typeText | ||
149 | text: resultDelegate.typeText | 149 | text: resultDelegate.typeText | ||
150 | opacity: 0.5 | 150 | color: theme.disabledTextColor | ||
151 | 151 | | |||
152 | horizontalAlignment: Text.AlignRight | 152 | horizontalAlignment: Text.AlignRight | ||
153 | verticalAlignment: Text.AlignVCenter | 153 | verticalAlignment: Text.AlignVCenter | ||
154 | elide: Text.ElideRight | 154 | elide: Text.ElideRight | ||
155 | textFormat: Text.PlainText | 155 | textFormat: Text.PlainText | ||
156 | 156 | | |||
157 | width: resultDelegate.categoryWidth - units.largeSpacing | 157 | width: resultDelegate.categoryWidth - units.largeSpacing | ||
158 | anchors { | 158 | anchors { | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 216 | PlasmaComponents.Label { | |||
217 | id: subtextLabel | 217 | id: subtextLabel | ||
218 | 218 | | |||
219 | // SourcesModel returns number of duplicates in this property | 219 | // SourcesModel returns number of duplicates in this property | ||
220 | // ResultsModel just has it as a boolean as you would expect from the name of the property | 220 | // ResultsModel just has it as a boolean as you would expect from the name of the property | ||
221 | text: model.isDuplicate === true || model.isDuplicate > 1 || resultDelegate.isCurrent ? String(model.subtext || "") : "" | 221 | text: model.isDuplicate === true || model.isDuplicate > 1 || resultDelegate.isCurrent ? String(model.subtext || "") : "" | ||
222 | 222 | | |||
223 | // HACK If displayLabel is too long it will shift this label outside boundaries | 223 | // HACK If displayLabel is too long it will shift this label outside boundaries | ||
224 | // but still render the text leading to it overlapping the action buttons looking horrible | 224 | // but still render the text leading to it overlapping the action buttons looking horrible | ||
225 | opacity: width > 0 ? 0.3 : 0 | 225 | opacity: width > 0 ? 1 : 0 | ||
226 | | ||||
227 | color: theme.disabledTextColor | ||||
226 | 228 | | |||
227 | height: undefined | 229 | height: undefined | ||
228 | 230 | | |||
229 | elide: Text.ElideMiddle | 231 | elide: Text.ElideMiddle | ||
230 | wrapMode: Text.NoWrap | 232 | wrapMode: Text.NoWrap | ||
231 | maximumLineCount: 1 | 233 | maximumLineCount: 1 | ||
232 | verticalAlignment: Text.AlignVCenter | 234 | verticalAlignment: Text.AlignVCenter | ||
233 | textFormat: Text.PlainText | 235 | textFormat: Text.PlainText | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |