Skip to content

Commit

Permalink
[settings] Added dummy properties expected by jolla-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed May 15, 2021
1 parent ccff6a3 commit 564a56b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/settings/BooksSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')
Expand Down

0 comments on commit 564a56b

Please sign in to comment.