Advertisement
Guest User

LongDialog.qml

a guest
Jan 21st, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.59 KB | None | 0 0
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3.  
  4. Dialog {
  5.     id: dialog
  6.  
  7.     SilicaFlickable {
  8.         anchors.fill: parent
  9.         height: content.height
  10.         //height: header.height + firstSection.height + foo.height + bar.height + baz.height + quux.height + secondSection.height + foo2.height + bar2.height + baz2.height + quux2.height
  11.         width: parent.width
  12.  
  13.         Column {
  14.  
  15.             id: content
  16.             width: parent.width
  17.  
  18.             height: header.height + firstSection.height + foo.height + bar.height + baz.height + quux.height + secondSection.height + foo2.height + bar2.height + baz2.height + quux2.height
  19.  
  20.             DialogHeader {
  21.                 id: header
  22.                 title: "Long dialog"
  23.                 width: parent.width
  24.             }
  25.  
  26.             SectionHeader  {
  27.                 id: firstSection
  28.                 text: "First"
  29.             }
  30.  
  31.             TextField {
  32.                 id: foo
  33.                 text: "foo"
  34.                 label: "foo"
  35.                 labelVisible: true
  36.                 width: parent.width
  37.             }
  38.  
  39.             TextField {
  40.                 id: bar
  41.                 text: "bar"
  42.                 label: "bar"
  43.                 labelVisible: true
  44.                 width: parent.width
  45.             }
  46.  
  47.             TextField {
  48.                 id: baz
  49.                 text: "baz"
  50.                 label: "baz"
  51.                 labelVisible: true
  52.                 width: parent.width
  53.             }
  54.  
  55.             TextField {
  56.                 id: quux
  57.                 text: "quux"
  58.                 label: "quuz"
  59.                 labelVisible: true
  60.                 width: parent.width
  61.             }
  62.  
  63.             SectionHeader {
  64.                 id: secondSection
  65.                 text: "Second"
  66.             }
  67.  
  68.             TextField {
  69.                 id: foo2
  70.                 text: "foo"
  71.                 label: "foo"
  72.                 labelVisible: true
  73.                 width: parent.width
  74.             }
  75.  
  76.             TextField {
  77.                 id: bar2
  78.                 text: "bar"
  79.                 label: "bar"
  80.                 labelVisible: true
  81.                 width: parent.width
  82.             }
  83.  
  84.             TextField {
  85.                 id: baz2
  86.                 text: "baz"
  87.                 label: "baz"
  88.                 labelVisible: true
  89.                 width: parent.width
  90.             }
  91.  
  92.             TextField {
  93.                 id: quux2
  94.                 text: "quux"
  95.                 label: "quuz"
  96.                 labelVisible: true
  97.                 width: parent.width
  98.             }
  99.         }
  100.     }
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement