summaryrefslogtreecommitdiff
path: root/src/model/EgoListModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/EgoListModel.cpp')
-rw-r--r--src/model/EgoListModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/EgoListModel.cpp b/src/model/EgoListModel.cpp
index 0e279bb..0cef0d4 100644
--- a/src/model/EgoListModel.cpp
+++ b/src/model/EgoListModel.cpp
@@ -80,14 +80,14 @@ EgoListModel::roleNames () const
80 * An ego was added to the source data. 80 * An ego was added to the source data.
81 */ 81 */
82void 82void
83EgoListModel::rowAddedSlot (Ego *ego) 83EgoListModel::rowAdded (Ego *ego)
84{ 84{
85 int index = m_data.count (); 85 int index = m_data.count ();
86 beginInsertRows (QModelIndex (), index, index); 86 beginInsertRows (QModelIndex (), index, index);
87 ego->setIndex (index); 87 ego->setIndex (index);
88 88
89 connect (ego, &Ego::modifiedSignal, 89 connect (ego, &Ego::modified,
90 this, &EgoListModel::rowModifiedSlot); 90 this, &EgoListModel::rowModified);
91 91
92 //m_lookupIndex[pubKey] = index; 92 //m_lookupIndex[pubKey] = index;
93 endInsertRows (); 93 endInsertRows ();
@@ -95,7 +95,7 @@ EgoListModel::rowAddedSlot (Ego *ego)
95 95
96 96
97void 97void
98EgoListModel::rowModifiedSlot (int index) 98EgoListModel::rowModified (int index)
99{ 99{
100 QModelIndex modelIndex = this->index (index); 100 QModelIndex modelIndex = this->index (index);
101 emit dataChanged (modelIndex, modelIndex); 101 emit dataChanged (modelIndex, modelIndex);