[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:28:31 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=f21746c

The following commit has been merged in the master branch:
commit f21746cfae989cc589b67f64388510cd0ad7f2aa
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Sun Apr 19 22:21:37 2015 -0700

    Returning a QIcon instead of a fixed size QPixmap for DecorationRole.
---
 interfaces/devicesmodel.cpp       | 2 +-
 interfaces/notificationsmodel.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index 35e44fc..c670b46 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -204,7 +204,7 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
             bool paired = device->isPaired();
             bool reachable = device->isReachable();
             QString icon = reachable? (paired? "user-online" : "user-busy") : "user-offline";
-            return QIcon::fromTheme(icon).pixmap(32, 32);
+            return QIcon::fromTheme(icon);
         }
         case IdModelRole:
             return device->id();
diff --git a/interfaces/notificationsmodel.cpp b/interfaces/notificationsmodel.cpp
index c17a816..9c6d38d 100644
--- a/interfaces/notificationsmodel.cpp
+++ b/interfaces/notificationsmodel.cpp
@@ -164,7 +164,7 @@ QVariant NotificationsModel::data(const QModelIndex& index, int role) const
     //FIXME: This function gets called lots of times, producing lots of dbus calls. Add a cache?
     switch (role) {
         case IconModelRole:
-            return QIcon::fromTheme("device-notifier").pixmap(32, 32);
+            return QIcon::fromTheme("device-notifier");
         case IdModelRole:
             return notification->internalId();
         case NameModelRole:

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list