[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:57:10 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=e0caf14

The following commit has been merged in the master branch:
commit e0caf1487d284505924ef355c933e92507e16abc
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Sat Feb 14 21:28:17 2009 +0000

    Implement rowCount() and data() methods on the accountsList model.
    
    svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=926227
---
 src/accounts-list-model.cpp | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/accounts-list-model.cpp b/src/accounts-list-model.cpp
index 2149bc8..5870294 100644
--- a/src/accounts-list-model.cpp
+++ b/src/accounts-list-model.cpp
@@ -40,13 +40,23 @@ AccountsListModel::~AccountsListModel()
 
 int AccountsListModel::rowCount(const QModelIndex &index) const
 {
-    // TODO: Implement me!
+    if(index == QModelIndex())
+    {
+       return m_readyAccounts.size();
+    }
+
     return 0;
 }
 
 QVariant AccountsListModel::data(const QModelIndex &index, int role) const
 {
-    // TODO: Implement me!
+    // FIXME: This is a basic implementation just so I can see what's going
+    // on while developing this code further. Needs expanding.
+    if(role == Qt::DisplayRole)
+    {
+        return QVariant(m_readyAccounts.at(index.row())->account()->displayName());
+    }
+
     return QVariant();
 }
 

-- 
ktp-accounts-kcm packaging



More information about the pkg-kde-commits mailing list