Advertisement
Guest User

APL + (global) BottomEdge

a guest
Jun 10th, 2016
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.83 KB | None | 0 0
  1. import QtQuick 2.4
  2. import Ubuntu.Components 1.3
  3.  
  4. MainView {
  5.     width: units.gu(100)
  6.     height: units.gu(75)
  7.  
  8.     Component.onCompleted: QuickUtils.mouseAttached = true
  9.  
  10.     AdaptivePageLayout {
  11.         // This is the main page stack
  12.         anchors.fill: parent
  13.  
  14.         primaryPage: Page {
  15.             header: PageHeader {
  16.                 title: "page1"
  17.             }
  18.         }
  19.     }
  20.  
  21.     BottomEdge {
  22.         // Bottom edge available globally
  23.         id: bottomEdge
  24.         anchors.fill: parent
  25.         hint.text: "bottomedge"
  26.  
  27.         contentComponent: AdaptivePageLayout {
  28.             width: bottomEdge.width
  29.             height: bottomEdge.height
  30.             primaryPage: Page {
  31.                 header: PageHeader {
  32.                     title: "bottom page"
  33.                 }
  34.             }
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement