~rpadovani/webbrowser-app/settings-page

« back to all changes in this revision

Viewing changes to src/app/webbrowser/history-model.cpp

  • Committer: Riccardo Padovani
  • Date: 2015-03-25 18:01:23 UTC
  • Revision ID: rpadovani@ubuntu.com-20150325180123-myua4s3q8cjbl0ac
Improve management of historyModel in SettingsPage, expose count property of historyModel

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    : QAbstractListModel(parent)
44
44
{
45
45
    m_database = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), CONNECTION_NAME);
 
46
    Q_EMIT rowCountChanged(rowCount());
46
47
}
47
48
 
48
49
HistoryModel::~HistoryModel()