[settings] Added dummy properties expected by jolla-settings

This commit is contained in:
Slava Monich 2021-05-15 22:41:53 +03:00
parent ccff6a3ab6
commit 564a56bc56

View file

@ -40,12 +40,17 @@ import "../qml/harbour"
Page {
id: page
property bool followOrientationChanges
property alias title: pageHeader.title
readonly property string rootPath: "/apps/" + appName() + "/"
readonly property bool darkOnLight: ('colorScheme' in Theme) && Theme.colorScheme === 1
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
function appName() {
var parts = Qt.resolvedUrl("dummy").split('/')