equal
deleted
inserted
replaced
66 // Connect to entryUpdated signal of agendautil. |
66 // Connect to entryUpdated signal of agendautil. |
67 connect( |
67 connect( |
68 mAgendaUtil, SIGNAL(entryUpdated(ulong)), |
68 mAgendaUtil, SIGNAL(entryUpdated(ulong)), |
69 this, SLOT(updateSourceModel(ulong))); |
69 this, SLOT(updateSourceModel(ulong))); |
70 |
70 |
71 // Populate the model in a different thread. |
71 // Connect for instance view creation completed signal |
72 QTimer::singleShot(1, this, SLOT(populateSourceModel())); |
72 connect( |
|
73 mAgendaUtil, SIGNAL(instanceViewCreationCompleted(int)), |
|
74 this,SLOT(handleInstanceViewCreationCompleted(int))); |
73 } |
75 } |
74 |
76 |
75 /*! |
77 /*! |
76 Destructor. |
78 Destructor. |
77 */ |
79 */ |
320 } |
322 } |
321 } |
323 } |
322 break; |
324 break; |
323 } |
325 } |
324 } |
326 } |
|
327 } |
|
328 |
|
329 /*! |
|
330 Populate the model after instance view creation. |
|
331 */ |
|
332 void NotesModel::handleInstanceViewCreationCompleted(int status) |
|
333 { |
|
334 Q_UNUSED(status); |
|
335 populateSourceModel(); |
325 } |
336 } |
326 |
337 |
327 /*! |
338 /*! |
328 Modifies the content of a given `row' with the data of the entry given by |
339 Modifies the content of a given `row' with the data of the entry given by |
329 `id'. |
340 `id'. |