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;
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);
model for management of all timer objects. This model will be is used as model for the view in the ti...
Definition timerModel.h:42
bool cacheItem(TimerItem &item)
Definition timerModel.cpp:272
int rowCount(const QModelIndex &parent=QModelIndex()) const
counts number of bookmarks in this model
Definition timerModel.cpp:61
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
returns QModelIndex for given row and column
Definition timerModel.cpp:152
int columnCount(const QModelIndex &parent=QModelIndex()) const
counts number of columns in this model (corresponds to number of header-elements)
Definition timerModel.cpp:71
TimerModel()
constructor
Definition timerModel.cpp:41
~TimerModel()
destructor
Definition timerModel.cpp:52
QModelIndex parent(const QModelIndex &index) const
returns parent of given QModelIndex
Definition timerModel.cpp:174
QVariant data(const QModelIndex &index, int role) const
overwritten data method of QAbstractItemModel
Definition timerModel.cpp:84
QVariant headerData(int section, Qt::Orientation orientation, int role) const
returns header element at given position
Definition timerModel.cpp:187
Definition apiFunctionsGraph.cpp:40
item of TimerModel
Definition timerModel.h:74
QString name
optional name of the name, can also be an empty string
Definition timerModel.h:77
bool started
cache value
Definition timerModel.h:78
bool singleShot
cache value
Definition timerModel.h:80
int timerId
cache value
Definition timerModel.h:81
int interval
cache value
Definition timerModel.h:79