diff options
Diffstat (limited to 'src/model/EgoListModel.cpp')
-rw-r--r-- | src/model/EgoListModel.cpp | 8 |
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 | */ |
82 | void | 82 | void |
83 | EgoListModel::rowAddedSlot (Ego *ego) | 83 | EgoListModel::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 | ||
97 | void | 97 | void |
98 | EgoListModel::rowModifiedSlot (int index) | 98 | EgoListModel::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); |