Commit 11e4a72a authored by Sandro Andrade's avatar Sandro Andrade

Fix menu delegates

parent feb12573
......@@ -105,10 +105,6 @@ Item {
width: 124; height: 44
text: i18n("new question")
ToolTip {
visible: exerciseView.state == "initial"
text: "click here!"
}
onClicked: {
exerciseView.state = "waitingForAnswer"
core.exerciseController.randomlySelectExerciseOptions()
......
......@@ -33,7 +33,7 @@ ApplicationWindow {
height: 480
title: qsTr("Minuet")
property int menuBarWidth: 280
property int menuBarWidth: 300
function exerciseViewStateChanged() {
if (exerciseView.state == "waitingForAnswer")
......
......@@ -62,9 +62,10 @@ Item {
ListView {
id: listView
anchors.fill: parent
spacing: -2
ScrollIndicator.vertical: ScrollIndicator { }
delegate: ItemDelegate {
id: control
height: 50
text: i18nc("technical term, do you have a musician friend?", modelData.name)
width: parent.width
onClicked: {
......@@ -90,6 +91,7 @@ Item {
text: control.text
font: control.font
color: control.enabled ? "#26282a" : "#bdbebf"
width: parent.width
wrapMode: Text.WordWrap
anchors.verticalCenter: parent.verticalCenter
visible: control.text
......@@ -97,6 +99,17 @@ Item {
verticalAlignment: Text.AlignVCenter
}
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 50
color: control.visualFocus ? (control.pressed ? "#cce0ff" : "#e5efff") : (control.down ? "#bdbebf" : "#eeeeee")
Rectangle {
width: parent.width
height: 1
color: "#cccccc"
anchors.bottom: parent.bottom
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment