It also provides typed access to the conferences from ConferenceEditor.
-It does not actually modify anything in DB, this is performed by other classes.
+It does not actually modify anything in DB (unless methods changing the conference instance returned by conferenceFromIndex are used),
+this is performed by other classes.
\see ConferenceEditor, MainWindow::showConferences()
*/
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
const Conference& conferenceFromIndex(const QModelIndex&) const;
+ Conference& conferenceFromIndex(const QModelIndex&);
QModelIndex indexFromId(int id) const;
public slots:
void newConferenceBegin();
// reinitialize list from database
void reinit()
{
+ beginResetModel();
conferences = Conference::getAll();
- reset();
+ endResetModel();
}
QList<Conference> conferences;