[packages/kde4-kdebase-workspace] - sort items in battery applet; rel back to 1 as that was changed by mistake

arekm arekm at pld-linux.org
Wed Jun 5 14:55:59 CEST 2013


commit ba4f7b93e76bc6560b1cfa114b3b378b91faa022
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Jun 5 14:55:56 2013 +0200

    - sort items in battery applet; rel back to 1 as that was changed by mistake

 kde4-kdebase-workspace-multibattery.patch | 30 ++++++++++++++++++++++++++++++
 kde4-kdebase-workspace.spec               |  2 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/kde4-kdebase-workspace.spec b/kde4-kdebase-workspace.spec
index fe42677..d87667d 100644
--- a/kde4-kdebase-workspace.spec
+++ b/kde4-kdebase-workspace.spec
@@ -8,7 +8,7 @@ Summary:	KDE 4 base workspace components
 Summary(pl.UTF-8):	Podstawowe komponenty środowiska KDE 4
 Name:		kde4-kdebase-workspace
 Version:	4.10.4
-Release:	1.1
+Release:	1
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
diff --git a/kde4-kdebase-workspace-multibattery.patch b/kde4-kdebase-workspace-multibattery.patch
index b7f8ffa..9865c51 100644
--- a/kde4-kdebase-workspace-multibattery.patch
+++ b/kde4-kdebase-workspace-multibattery.patch
@@ -2224,3 +2224,33 @@ index aa57ab8..0000000
 -    return false;
 -}
 -
+diff --git a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
+index 357c2dc..feda7bc 100644
+--- a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
++++ b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
+@@ -84,13 +84,19 @@ Item {
+         }
+     }
+ 
+-    property QtObject batteries: PlasmaCore.DataModel {
++    property QtObject batteries: PlasmaCore.SortFilterModel {
+         id: batteries
+-        dataSource: pmSource
+-        sourceFilter: "Battery[0-9]+"
+-
+-        onDataChanged: {
+-            updateLogic()
++        filterRole: "Is Power Supply"
++        sortOrder: Qt.DescendingOrder
++        sourceModel: PlasmaCore.SortFilterModel {
++            sortRole: "Pretty Name"
++            sortOrder: Qt.AscendingOrder
++            sourceModel: PlasmaCore.DataModel {
++                dataSource: pmSource
++                sourceFilter: "Battery[0-9]+"
++
++                onDataChanged: updateLogic()
++            }
+         }
+ 
+         property int cumulativePercent
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde4-kdebase-workspace.git/commitdiff/ba4f7b93e76bc6560b1cfa114b3b378b91faa022



More information about the pld-cvs-commit mailing list