-
Notifications
You must be signed in to change notification settings - Fork 0
/
LapDataCompartor.hpp
50 lines (34 loc) · 1016 Bytes
/
LapDataCompartor.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __LAPDATACOMPARTOR_HPP__
#define __LAPDATACOMPARTOR_HPP__
#define TIME_MS_COLUMN 1
#define TIME_S_COLUMN 2
#define DISTANCE_COLUMN 3
#define SPEED_COLUMN 4
#include "Common/LapInformationTreeModel.hpp"
#include "LapInformationProxyModel.hpp"
#include <QtGui>
namespace Ui {
class LapDataCompartor;
}
class LapDataCompartor : public QDialog
{
Q_OBJECT
public:
explicit LapDataCompartor(int raceNumber, int lapNumber,
QWidget *parent = 0);
~LapDataCompartor(void);
void addLapsData(const QList<QVariant>& dataLap1,
const QList<QVariant>& dataLap2);
private:
void createTableModel(void);
protected:
//virtual void paintEvent(QPaintEvent* event);
protected:
// GUI
Ui::LapDataCompartor *ui;
int raceNum;
int lapNum;
// Personal Model
LapInformationTreeModel* lapDataTableModel;
};
#endif /* __LAPDATACOMPARTOR_HPP__ */