/** * @brief Updates all priorities of calendar items */ void CalendarItem::updateAllSortPriorities() { QList<CalendarItem> calendarItemList = fetchAll(); QListIterator<CalendarItem> itr(calendarItemList); while (itr.hasNext()) { CalendarItem calItem = itr.next(); calItem.updateSortPriority(); calItem.store(); } }
QList<QVariantMap> DataAccess::fetchAll(const DataAccessStatement &stat, const QVariantList &bind /* = QVariantList() */) { return fetchAll(stat.toString(), QVariantList() << stat.bind() << bind); }
void ComicsModel::startAutomaticFetch(int interval) { m_automaticFetchTimer = new QTimer(this); m_automaticFetchTimer->start(interval); connect(m_automaticFetchTimer, SIGNAL(timeout()), this, SLOT(fetchAll())); }