25 #include "../common/sharedStructures.h"
27 #include <qabstractitemmodel.h>
32 #include <qsharedpointer.h>
49 QVariant
data(
const QModelIndex &
index,
int role)
const;
50 QModelIndex
index(
int row,
int column,
const QModelIndex &
parent = QModelIndex())
const;
51 QModelIndex
parent(
const QModelIndex &index)
const;
52 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
53 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
55 void registerNewTimer(
const QWeakPointer<QTimer>& timer,
const QString &name);
56 void updateTimerData();
57 void autoUpdateModel(
bool enabled);
59 void timerStart(
const QModelIndex &index);
60 void timerStop(
const QModelIndex &index);
64 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
66 void timerEvent(QTimerEvent *ev);
76 QWeakPointer<QTimer> timer;
87 QList<TimerItem> m_timers;
95 void timerDestroyed(QObject *timer);
bool cacheItem(TimerItem &item)
Definition: timerModel.cpp:273
model for management of all timer objects. This model will be is used as model for the view in the ti...
Definition: timerModel.h:41
QVariant headerData(int section, Qt::Orientation orientation, int role) const
returns header element at given position
Definition: timerModel.cpp:187
item of TimerModel
Definition: timerModel.h:73
int columnCount(const QModelIndex &parent=QModelIndex()) const
counts number of columns in this model (corresponds to number of header-elements) ...
Definition: timerModel.cpp:71
Definition: apiFunctionsGraph.cpp:39
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
returns QModelIndex for given row and column
Definition: timerModel.cpp:152
QString name
optional name of the name, can also be an empty string
Definition: timerModel.h:77
QVariant data(const QModelIndex &index, int role) const
overwritten data method of QAbstractItemModel
Definition: timerModel.cpp:84
int timerId
cache value
Definition: timerModel.h:81
QModelIndex parent(const QModelIndex &index) const
returns parent of given QModelIndex
Definition: timerModel.cpp:174
~TimerModel()
destructor
Definition: timerModel.cpp:52
int interval
cache value
Definition: timerModel.h:79
int rowCount(const QModelIndex &parent=QModelIndex()) const
counts number of bookmarks in this model
Definition: timerModel.cpp:61
bool started
cache value
Definition: timerModel.h:78
bool singleShot
cache value
Definition: timerModel.h:80
TimerModel()
constructor
Definition: timerModel.cpp:41