[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:44 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=e227c61
The following commit has been merged in the master branch:
commit e227c61cf82e401d6d2af325b168b1a3eebfaa2c
Author: Aleix Pol <aleixpol at kde.org>
Date: Fri Jun 27 16:09:01 2014 +0200
Expose flags so that the plasmoid doesn't need to use magic numbers
---
interfaces/devicesmodel.h | 5 +++--
plasmoid/package/contents/ui/kdeconnect.qml | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/interfaces/devicesmodel.h b/interfaces/devicesmodel.h
index e8e6590..7cc0f96 100644
--- a/interfaces/devicesmodel.h
+++ b/interfaces/devicesmodel.h
@@ -35,7 +35,7 @@ class KDECONNECTINTERFACES_EXPORT DevicesModel
: public QAbstractListModel
{
Q_OBJECT
- Q_PROPERTY(int displayFilter READ displayFilter WRITE setDisplayFilter)
+ Q_PROPERTY(StatusFlags displayFilter READ displayFilter WRITE setDisplayFilter)
Q_PROPERTY(int count READ rowCount NOTIFY rowsChanged)
public:
@@ -47,11 +47,12 @@ public:
IconNameRole,
IsPairedRole
};
- enum StatusFlags {
+ enum StatusFlag {
StatusUnknown = 0x00,
StatusPaired = 0x01,
StatusReachable = 0x02
};
+ Q_DECLARE_FLAGS(StatusFlags, StatusFlag)
DevicesModel(QObject *parent = 0);
virtual ~DevicesModel();
diff --git a/plasmoid/package/contents/ui/kdeconnect.qml b/plasmoid/package/contents/ui/kdeconnect.qml
index 8d682e3..cbaa7d2 100644
--- a/plasmoid/package/contents/ui/kdeconnect.qml
+++ b/plasmoid/package/contents/ui/kdeconnect.qml
@@ -68,7 +68,7 @@ Item {
anchors.fill: parent
model: KdeConnect.DevicesModel {
id: connectDeviceModel
- displayFilter: 3
+ displayFilter: StatusPaired | StatusReachable
}
delegate: DeviceDelegate { }
onCountChanged: shouldPlasmoidBeShown()
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list