Skip to content

Commit

Permalink
Progress FollowMyVote#19: Bind form fields to purchase request proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
nathanielhourt committed Feb 9, 2016
1 parent feb2dae commit 72d486b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions VotingApp/qml/CreateContestPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,28 @@ Page {
width: parent.width

AppTextField {
id: contestName
width: parent.width
placeholderText: qsTr("Contest Name")
maximumLength: contestCreator.contestLimits[ContestLimits.NameLength]

Binding {
target: purchaseRequest
property: "name"
value: contestName.text
}
}
AppTextEdit {
id: contestDescription
width: parent.width
placeholderText: qsTr("Description")
wrapMode: TextEdit.Wrap

Binding {
target: purchaseRequest
property: "description"
value: contestDescription.text
}
}
Row {
spacing: window.dp(8)
Expand Down

0 comments on commit 72d486b

Please sign in to comment.