Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been working on my msm touch app and got to a point were I get the needed info from an XML file, but it is unthemed, and not as good looking as other "direct" text is. Its black and further to the left.

This is my code to show the needed info:

// Server status
ListItem.ThinDivider {} //can be used as header for list
  ListItem.Standard {
    ListView {
      model: xmlModel
      delegate: Text { text: "Serverstatus " + serverState }
    }
 showDivider: false
}

I'm using XmlListModel to get the info.

SO. WHy is the text not like the rest, and how do I fix it?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

What I had to do was to deligate the outout from the XML in a ListItem like this:

ListView {
   width: units.gu(50)
   height: units.gu(5)
   model: minecraftBlogg
   delegate: ListItem.Subtitled {
      text: minecraftVersion
      subText: i18n.tr("Latest version")
      progression: true
      showDivider: false
  }
 }
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.