[settings] Added dummy properties expected by jolla-settings
This commit is contained in:
parent
ccff6a3ab6
commit
564a56bc56
1 changed files with 5 additions and 0 deletions
|
@ -40,12 +40,17 @@ import "../qml/harbour"
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
id: page
|
id: page
|
||||||
|
|
||||||
property bool followOrientationChanges
|
property bool followOrientationChanges
|
||||||
property alias title: pageHeader.title
|
property alias title: pageHeader.title
|
||||||
readonly property string rootPath: "/apps/" + appName() + "/"
|
readonly property string rootPath: "/apps/" + appName() + "/"
|
||||||
readonly property bool darkOnLight: ('colorScheme' in Theme) && Theme.colorScheme === 1
|
readonly property bool darkOnLight: ('colorScheme' in Theme) && Theme.colorScheme === 1
|
||||||
readonly property bool landscapeLayout: (width > height && Screen.sizeCategory > Screen.Small) || Screen.sizeCategory > Screen.Medium
|
readonly property bool landscapeLayout: (width > height && Screen.sizeCategory > Screen.Small) || Screen.sizeCategory > Screen.Medium
|
||||||
|
|
||||||
|
// jolla-settings expects these properties:
|
||||||
|
property var applicationName
|
||||||
|
property var applicationIcon
|
||||||
|
|
||||||
// Deduce package name from the path
|
// Deduce package name from the path
|
||||||
function appName() {
|
function appName() {
|
||||||
var parts = Qt.resolvedUrl("dummy").split('/')
|
var parts = Qt.resolvedUrl("dummy").split('/')
|
||||||
|
|
Loading…
Reference in a new issue