[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:04:29 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=1c31e58
The following commit has been merged in the master branch:
commit 1c31e5815c8b3da1ce48cfb8cbf2f5e38780ee41
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date: Thu Mar 10 23:30:15 2011 +0100
Code polish
---
models/accounts-model.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/models/accounts-model.cpp b/models/accounts-model.cpp
index bb27976..c2720b1 100644
--- a/models/accounts-model.cpp
+++ b/models/accounts-model.cpp
@@ -54,9 +54,11 @@ AccountsModel::AccountsModel(const Tp::AccountManagerPtr &am, QObject *parent)
connect(mPriv->mTree,
SIGNAL(changed(TreeNode*)),
SLOT(onItemChanged(TreeNode*)));
+
connect(mPriv->mTree,
SIGNAL(childrenAdded(TreeNode*,QList<TreeNode*>)),
SLOT(onItemsAdded(TreeNode*,QList<TreeNode*>)));
+
connect(mPriv->mTree,
SIGNAL(childrenRemoved(TreeNode*,int,int)),
SLOT(onItemsRemoved(TreeNode*,int,int)));
@@ -141,7 +143,6 @@ void AccountsModel::onItemsAdded(TreeNode *parent, const QList<TreeNode *> &node
{
QModelIndex parentIndex = index(parent);
int currentSize = rowCount(parentIndex);
- //debug() << "adding rows from" << currentSize << "to" << (currentSize + nodes.size() - 1);
beginInsertRows(parentIndex, currentSize, currentSize + nodes.size() - 1);
foreach (TreeNode *node, nodes) {
parent->addChild(node);
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list