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

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:27:43 UTC 2016


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

The following commit has been merged in the master branch:
commit dc2f9c0f3ca4b1cbb061045ae7ac8741882d8e5e
Author: Aleix Pol <aleixpol at kde.org>
Date:   Mon Jun 23 18:13:43 2014 +0200

    Introduce a IsPaired role in the DevicesModel
    
    Reviewed by Albert Vaca
---
 interfaces/devicesmodel.cpp | 2 ++
 interfaces/devicesmodel.h   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index 8242107..479a1d1 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -170,6 +170,8 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
         }
         case IconNameRole:
             return device->iconName();
+        case IsPairedRole:
+            return QVariant::fromValue<bool>(device->isPaired());
         default:
             return QVariant();
     }
diff --git a/interfaces/devicesmodel.h b/interfaces/devicesmodel.h
index 15bcb67..e8e6590 100644
--- a/interfaces/devicesmodel.h
+++ b/interfaces/devicesmodel.h
@@ -44,7 +44,8 @@ public:
         IconModelRole = Qt::DecorationRole,
         StatusModelRole = Qt::InitialSortOrderRole,
         IdModelRole = Qt::UserRole,
-        IconNameRole
+        IconNameRole,
+        IsPairedRole
     };
     enum StatusFlags {
         StatusUnknown   = 0x00,

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list