[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:33 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=50f611f
The following commit has been merged in the master branch:
commit 50f611f8e3bc7b42df2a0bcaf6adcc7ce15a1726
Author: Albert Vaca <albertvaka at gmail.com>
Date: Sun May 17 18:48:10 2015 -0700
IconModelRole now uses IconNameModelRole
---
interfaces/devicesmodel.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index e3ba876..9b06ffc 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -200,12 +200,10 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
DeviceDbusInterface* device = m_deviceList[index.row()];
- //FIXME: This function gets called lots of times, producing lots of dbus calls. Add a cache.
+ //This function gets called lots of times, producing lots of dbus calls. Add a cache?
switch (role) {
case IconModelRole: {
- bool paired = device->isPaired();
- bool reachable = device->isReachable();
- QString icon = reachable? (paired? "user-online" : "user-busy") : "user-offline";
+ QString icon = data(index, IconNameRole).toString();
return QIcon::fromTheme(icon);
}
case IdModelRole:
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list