[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:21 UTC 2016


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

The following commit has been merged in the master branch:
commit d3640568b1308b603eee8497565734bf77964339
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Wed Jul 22 18:13:31 2009 +0000

    Actually get the protocols displaying in the list.
    
    svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=1001238
---
 src/protocol-item.cpp       | 2 +-
 src/protocol-list-model.cpp | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/protocol-item.cpp b/src/protocol-item.cpp
index baa5a49..3162bae 100644
--- a/src/protocol-item.cpp
+++ b/src/protocol-item.cpp
@@ -28,7 +28,7 @@ ProtocolItem::ProtocolItem(const QString &protocol, ConnectionManagerItem *paren
  : QObject(parent),
    m_protocol(protocol)
 {
-    kDebug();
+    kDebug() << "Creating new ProtocolItem with cmItem: " << parent << " and protocol;" << protocol;
 
     // TODO: Implement me!
 }
diff --git a/src/protocol-list-model.cpp b/src/protocol-list-model.cpp
index b023389..b69d06a 100644
--- a/src/protocol-list-model.cpp
+++ b/src/protocol-list-model.cpp
@@ -62,7 +62,7 @@ QVariant ProtocolListModel::data(const QModelIndex &index, int role) const
     switch(role)
     {
     case Qt::DisplayRole:
-   //     data = QVariant(m_readyAccounts.at(index.row())->account()->displayName());
+        data = QVariant(m_protocolItems.at(index.row())->protocol());
         break;
     default:
         break;
@@ -117,8 +117,10 @@ void ProtocolListModel::onNewProtocol(const QString& protocol)
     }
 
     // Add the Protocol/CM pair to the model.
+    beginInsertRows(QModelIndex(), m_protocolItems.size(), m_protocolItems.size());
     ProtocolItem *item = new ProtocolItem(protocol, cmItem);
     m_protocolItems.append(item);
+    endInsertRows();
 }
 
 

-- 
ktp-accounts-kcm packaging



More information about the pkg-kde-commits mailing list