File: qml-demo-shell.qml

package info (click to toggle)
qtmir 0.8.0~git20230223.bd21224-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,568 kB
  • sloc: cpp: 22,847; python: 304; xml: 271; ansic: 87; makefile: 20; sh: 12
file content (39 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import QtQuick 2.5
import QtQml.Models 2.15
import QtQml 2.15
import QtMir.DemoShell 0.1

Instantiator {
    id: root

    model: Screens

    ScreenWindow {
        id: window
        visible: true
        screen: model.screen

        Binding {
            target: model.screen
            property: "active"
            value: index == 0
        }

        Row {
            x: 10
            y: 10
            Repeater {
                model: Screens
                ScreenConfiguration {
                    screen: model.screen
                }
            }
        }

        Shell {
            width: parent.width
            height: parent.height
            z: 1
        }
    }
}