Skip to content

Commit

Permalink
Replace Label with Text for AppChooser delegates
Browse files Browse the repository at this point in the history
Text is cheaper than Label.

Issue: #173
  • Loading branch information
plfiorini committed Feb 12, 2015
1 parent 4b4107b commit c2cc9b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shells/desktop/indicators/appchooser/ItemListDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,23 @@ Item {
}

Column {
Label {
Text {
id: label
text: model.display
font.pointSize: Themes.Theme.defaultFont.pointSize * 1.1
font.bold: true
renderType: Text.NativeRendering
color: Themes.Theme.palette.panel.textColor
elide: Text.ElideRight
wrapMode: Text.NoWrap
textFormat: Text.PlainText
}

Label {
Text {
id: descr
text: model.description ? model.description : ""
color: Themes.Theme.palette.panel.textColor
renderType: Text.NativeRendering
elide: Text.ElideRight
wrapMode: Text.NoWrap
textFormat: Text.PlainText
Expand Down

0 comments on commit c2cc9b8

Please sign in to comment.