File: ReadOnlyProperty.qml

package info (click to toggle)
doxyqml 0.5.3-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: python: 1,349; cpp: 165; makefile: 9; sh: 8
file content (14 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * An item with readonly properties
 */
Item {
    /**
     * A readonly property
     */
    readonly property real gravity: 9.81

    /**
     * A read-write property
     */
    property real speed
}