Advertisement
ejjoman

Untitled

Mar 4th, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.10 KB | None | 0 0
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3. import com.jolla.settings 1.0
  4.  
  5. Page {
  6.     id: page
  7.  
  8.     SilicaFlickable {
  9.         id: flick
  10.         anchors.fill: parent
  11.  
  12.         contentHeight: content.height
  13.  
  14.         Column {
  15.             id: content
  16.             width: parent.width
  17.  
  18.             FavoritesZone { id: favs }
  19.  
  20.             Item {
  21.                 // spacer to keep page links at bottom when the page isn't full, and always keep a little margin
  22.                 height: Math.max(2*Theme.paddingLarge, page.height - favs.height - pages.height - Theme.paddingLarge)
  23.                 width: parent.width
  24.             }
  25.  
  26.             Column {
  27.                 id: pages
  28.                 width: parent.width
  29.  
  30.                 Repeater {
  31.                     model: SettingsModel {
  32.                         path: []
  33.                         depth: 1
  34.                     }
  35.  
  36.                     delegate: SettingComponentLoader {
  37.                         settingsObject: model.object
  38.                     }
  39.                 }
  40.             }
  41.         }
  42.  
  43.         VerticalScrollDecorator {}
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement