+
+
+QVariant CurrentAlertsTableModel::headerData(int section, Qt::Orientation orientation, int role) const
+{
+ //Reimplemented from QAbsractTableModel
+ //No headers wanted so we just return an empty QVariant
+ return QVariant();
+}
+
+
+void CurrentAlertsTableModel::setUpdateViewOnChanges(bool update)
+{
+ updateViewOnChanges_ = update;
+ if (update == true)
+ reset(); //Refresh view to catch up with past changes
+}
+
+bool CurrentAlertsTableModel::isThisTimerAlerting(QModelIndex index)
+{
+ if (index.isValid())
+ {
+ if (currentTimers_.at(index.row())->isAlerting())
+ {
+ return true;
+ }
+
+ }
+ return false;
+}