blob: 9cc023b2eadad843474fe794ffd5aabc9b2152bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef MYMODEL_H
#define MYMODEL_H
#include <QAbstractTableModel>
class QTimer; // forward declaration
class MyModel : public QAbstractTableModel
{
Q_OBJECT
public:
MyModel(QObject *parent);
int rowCount(const QModelIndex &parent = QModelIndex()) const ;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QTimer *timer;
private:
int selectedCell;
private slots:
void timerHit();
};
#endif // MYMODEL_H
|