From 564a56bc56eeada7b65c10846621de7b9d7b0ef4 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 15 May 2021 22:41:53 +0300 Subject: [PATCH] [settings] Added dummy properties expected by jolla-settings --- app/settings/BooksSettings.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/settings/BooksSettings.qml b/app/settings/BooksSettings.qml index 1b209f5..c7a894a 100644 --- a/app/settings/BooksSettings.qml +++ b/app/settings/BooksSettings.qml @@ -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('/')