A Code question

Asked by Aritchie on 2011-05-09

Hello gentlemen, I wanted to do a little experimenting with the icon selection in the places but I am having a little trouble isolating what determines the height and width of the selection. I have located the code that determines the color of the selection. I wonder if someone could give me a little nudge.

Question information

Language:
English Edit question
Status:
Answered
For:
unity-2d Edit question
Assignee:
No assignee Edit question
Last query:
2011-05-09
Last reply:
2011-05-11
Olivier Tilloy (osomon) said : #1

You can look at the Button component (places/Button.qml). It contains a rectangle for the selection, and by default that rectangle covers the whole area of the button. The attribute that defines this layout is the following:

    anchors.fill: parent

Can you help with this problem?

Provide an answer of your own, or ask Aritchie for more information if necessary.

To post a message you must log in.