[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libkpeople/cleanup] src: Move related methods together, less mess
From:       Martin Klapetek <martin.klapetek () gmail ! com>
Date:       2013-06-29 14:20:18
Message-ID: E1Usw0g-00065y-R7 () scm ! kde ! org
[Download RAW message or body]

Git commit adf862c77744fee34a0a644c3def8756fbfc41b0 by Martin Klapetek.
Committed on 29/06/2013 at 14:17.
Pushed by mklapetek into branch 'cleanup'.

Move related methods together, less mess

M  +11   -11   src/personsmodel.cpp

http://commits.kde.org/libkpeople/adf862c77744fee34a0a644c3def8756fbfc41b0

diff --git a/src/personsmodel.cpp b/src/personsmodel.cpp
index 41c1d17..f2eb251 100644
--- a/src/personsmodel.cpp
+++ b/src/personsmodel.cpp
@@ -294,17 +294,6 @@ QList<QModelIndex> PersonsModel::indexesForUris(const QVariantList& uris) const
     return ret;
 }
 
-void PersonsModel::updateContactFinished(Soprano::Util::AsyncQuery *query)
-{
-    ContactItem *contact = query->property("contactItem").value<ContactItem*>();
-
-    if (!contact) {
-        return;
-    }
-
-    contact->finishLoadingData();
-}
-
 ContactItem* PersonsModel::contactItemForUri(const QUrl &uri) const
 {
     Q_D(const PersonsModel);
@@ -375,6 +364,17 @@ void PersonsModel::updateContact(const QUrl &uri)
             this, SLOT(updateContactFinished(Soprano::Util::AsyncQuery*)));
 }
 
+void PersonsModel::updateContactFinished(Soprano::Util::AsyncQuery *query)
+{
+    ContactItem *contact = query->property("contactItem").value<ContactItem*>();
+
+    if (!contact) {
+        return;
+    }
+
+    contact->finishLoadingData();
+}
+
 void PersonsModel::removeContact(const QUrl &uri)
 {
     Q_D(PersonsModel);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic