Advertisement
Guest User

Untitled

a guest
Feb 7th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Page {
  2.     objectName: "questionPage"
  3.     id: questionPage
  4.     tools: questionTools
  5.  
  6.     Column {
  7.         id: questionColumn
  8.         width: parent.width
  9.         spacing: 20
  10.  
  11.         TextArea {
  12.             id: questionText
  13.             width: parent.width
  14.             readOnly: true
  15.             font.pixelSize: 32
  16.             text: rootWindow.questionText
  17.         }
  18.         AnswerButton {
  19.             id: answerButtonA
  20.             anchors.top: questionText.bottom
  21.             answertext: rootWindow.ansTextA
  22.             isTruth: rootWindow.truthA
  23.             buttontext: "A"
  24.         }
  25.         AnswerButton {
  26.             id: answerButtonB
  27.             anchors.top: answerButtonA.bottom
  28.             answertext: rootWindow.ansTextB
  29.             isTruth: rootWindow.truthB
  30.             buttontext: "B"
  31.         }
  32.         AnswerButton {
  33.             id: answerButtonC
  34.             anchors.top: answerButtonB.bottom
  35.             answertext: rootWindow.ansTextC
  36.             isTruth: rootWindow.truthC
  37.             buttontext: "C"
  38.         }
  39.         AnswerButton {
  40.             id: answerButtonD
  41.             anchors.top: answerButtonC.bottom
  42.             answertext: rootWindow.ansTextD
  43.             isTruth: rootWindow.truthD
  44.             buttontext: "D"
  45.         }
  46.         AnswerButton {
  47.             id: answerButtonE
  48.             anchors.top: answerButtonD.bottom
  49.             answertext: rootWindow.ansTextE
  50.             isTruth: rootWindow.truthE
  51.             buttontext: "E"
  52.         }
  53.     }
  54.     Flickable {
  55.         id: flickable
  56.         width: parent.width
  57.         contentWidth: Math.max(parent.width,questionColumn.width)
  58.         contentHeight: Math.max(parent.height,questionColumn.height)
  59.         pressDelay: 200
  60.         Item {
  61.             id: dummyItem
  62.             anchors.top: questionColumn.top
  63.             anchors.bottom: questionColumn.bottom
  64.         }
  65.     }
  66.     ScrollDecorator {
  67.         id: scrolldecorator
  68.         flickableItem: flickable
  69.     }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement