Skip to content

Commit

Permalink
Merge pull request #4 from juanro49/master
Browse files Browse the repository at this point in the history
Fix compatibility with Sailfish OS 3.3 (Rokua)+
  • Loading branch information
g7 authored Jun 14, 2020
2 parents 737c7fe + 47fd09b commit 9940d8c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
jolla-settings-screenmonitor.pro.user
jolla-settings-screenmonitor.pro.autosave

RPMS/
5 changes: 5 additions & 0 deletions rpm/jolla-settings-screenmonitor.changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
# * date Author's Name <author's email> version-release
# - Summary of changes

* Sun Jun 14 2020 Juanro49 <[email protected]> 1.0.4-1
- jolla-settings-screenmonitor.qml: Fix show percentages in DetailItems
- jolla-settings-screenmonitor.yaml: Add nemo-qml-plugin-contextkit-qt5 dependency to fix compatibility with Sailfish OS 3.0.3 (Rokua)+
- jolla-settings-screenmonitor.spec: Add nemo-qml-plugin-contextkit-qt5 dependency to fix compatibility with Sailfish OS 3.0.3 (Rokua)+

* Thu Sep 06 2018 Eugenio "g7" Paolantonio <[email protected]> 1.0.3-1
- [settings] Move to Nemo.DBus 2.0. Fixes compatibility with Sailfish OS 2.2.1 (Nurmonjoki)+

Expand Down
3 changes: 2 additions & 1 deletion rpm/jolla-settings-screenmonitor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ Name: jolla-settings-screenmonitor
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: jolla-settings-screenmonitor
Version: 1.0.3
Version: 1.0.4
Release: 1
Group: Applications/System
License: GPL2
URL: http://me.medesimo.eu
Source0: %{name}-%{version}.tar.bz2
Source100: jolla-settings-screenmonitor.yaml
Requires: sailfishsilica-qt5 >= 0.10.9
Requires: nemo-qml-plugin-contextkit-qt5
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml)
Expand Down
3 changes: 2 additions & 1 deletion rpm/jolla-settings-screenmonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: jolla-settings-screenmonitor
Summary: jolla-settings-screenmonitor
Version: 1.0.3
Version: 1.0.4
Release: 1
# The contents of the Group field should be one of the groups listed here:
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
Expand Down Expand Up @@ -34,6 +34,7 @@ PkgBR:
# Runtime dependencies which are not automatically detected
Requires:
- sailfishsilica-qt5 >= 0.10.9
- nemo-qml-plugin-contextkit-qt5

# All installed files
Files:
Expand Down
6 changes: 3 additions & 3 deletions settings/jolla-settings-screenmonitor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Page {
font.pixelSize: Theme.fontSizeHuge
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTrId("settings_system-la-battery_level").arg(percentage)
text: qsTrId("%1%").arg(percentage)
}
}

Expand All @@ -186,13 +186,13 @@ Page {
DetailItem {
width: parent.width
label: qsTr("Battery")
value: qsTrId("settings_system-la-battery_level").arg(batteryPercentage.value)
value: qsTrId("%1%").arg(batteryPercentage.value)
}

DetailItem {
width: parent.width
label: qsTr("Brightness")
value: qsTrId("settings_system-la-battery_level").arg(brightness)
value: qsTrId("%1%").arg(brightness)
}

}
Expand Down

0 comments on commit 9940d8c

Please sign in to comment.