2012-11-27 14:48:48 +01:00
|
|
|
ChoiceListLabel < Label
|
|
|
|
font: verdana-11px-monochrome
|
|
|
|
background-color: alpha
|
|
|
|
text-offset: 2 0
|
|
|
|
focusable: true
|
|
|
|
|
|
|
|
$focus:
|
|
|
|
background-color: #ffffff22
|
|
|
|
color: #ffffff
|
|
|
|
|
|
|
|
ModalDialog < MainWindow
|
|
|
|
id: modalDialog
|
|
|
|
!text: tr('Title')
|
|
|
|
size: 280 230
|
|
|
|
@onEscape: self:destroy()
|
|
|
|
|
|
|
|
Label
|
|
|
|
id: messageLabel
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
text-align: left
|
|
|
|
text: Message
|
|
|
|
height: 60
|
|
|
|
|
|
|
|
TextList
|
|
|
|
id: choiceList
|
|
|
|
vertical-scrollbar: choiceScrollBar
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.bottom: next.top
|
|
|
|
margin-bottom: 10
|
|
|
|
margin-top: 10
|
|
|
|
padding: 1
|
|
|
|
focusable: false
|
|
|
|
|
|
|
|
Button
|
|
|
|
id: enterButton
|
|
|
|
!text: tr('Ok')
|
|
|
|
anchors.top: next.top
|
|
|
|
anchors.right: next.left
|
|
|
|
margin-right: 8
|
|
|
|
width: 60
|
|
|
|
|
|
|
|
Button
|
|
|
|
id: escapeButton
|
|
|
|
!text: tr('Cancel')
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-top: 10
|
|
|
|
width: 60
|
|
|
|
|
|
|
|
VerticalScrollBar
|
|
|
|
id: choiceScrollBar
|
|
|
|
anchors.top: choiceList.top
|
|
|
|
anchors.bottom: choiceList.bottom
|
|
|
|
anchors.right: choiceList.right
|
|
|
|
step: 14
|
2012-12-28 17:15:57 +01:00
|
|
|
pixels-scroll: true
|