projects
/
kitchenalert
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ready to be packaged
[kitchenalert]
/
src
/
currentalertstablemodel.h
diff --git
a/src/currentalertstablemodel.h
b/src/currentalertstablemodel.h
index
32cadc3
..
9751671
100644
(file)
--- a/
src/currentalertstablemodel.h
+++ b/
src/currentalertstablemodel.h
@@
-28,6
+28,7
@@
#define CURRENTALERTSTABLEMODEL_H
#include <QAbstractTableModel>
#define CURRENTALERTSTABLEMODEL_H
#include <QAbstractTableModel>
+#include <QMainWindow>
#include "timer.h"
#include "timer.h"
@@
-54,8
+55,12
@@
public:
QVariant data(const QModelIndex &index, int role) const;
QVariant data(const QModelIndex &index, int role) const;
+ QVariant headerData(int section, Qt::Orientation orientation, int role) const;
+
QModelIndex giveIndexForTimer(Timer * ptimer);
QModelIndex giveIndexForTimer(Timer * ptimer);
+ bool isThisTimerAlerting(QModelIndex index);
+
signals:
public slots:
signals:
public slots:
@@
-68,6
+73,9
@@
public slots:
void snoozeTimer(QModelIndex index);
void stopTimer(QModelIndex index);
void snoozeTimer(QModelIndex index);
void stopTimer(QModelIndex index);
+
+ void setUpdateViewOnChanges(bool update);
+
private:
QList <Timer * > currentTimers_;
private:
QList <Timer * > currentTimers_;
@@
-76,6
+84,10
@@
private:
static const int timeRemainingColumnNumber_ = 1;
static const int statusColumnNumber_ = 2;
static const int timeRemainingColumnNumber_ = 1;
static const int statusColumnNumber_ = 2;
+
+
+ bool updateViewOnChanges_;
+
};
#endif // CURRENTALERTSTABLEMODEL_H
};
#endif // CURRENTALERTSTABLEMODEL_H