-
Notifications
You must be signed in to change notification settings - Fork 0
/
gantt.h
42 lines (33 loc) · 860 Bytes
/
gantt.h
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
#ifndef GANTT_H
#define GANTT_H
#include <QDateTime>
#include <QTableWidget>
#include <QHeaderView>
#include <QString>
#include <QObject>
#include <QStandardItemModel>
#include <QAbstractItemModel>
#include <QItemDelegate>
#include <QMouseEvent>
#include <QCoreApplication>
#include <vector>
#include <iostream>
#include "database.h"
#include "delegate.h"
#include "stardelegate.h"
#include "starrating.h"
//####################### ##############################
class gantt : public QObject
{
Q_OBJECT
public:
gantt(database *db);
~gantt();
void build(QStringList lst, QStringList lstNumb, int col, int dayLength[7], QDate displayFrom, bool editMode);
QTableWidget *table = new QTableWidget;
inline void changeDb(database *db){this->db = db;};
private:
QTableWidgetItem* targetItem;
database *db;
};
#endif // GANTT_H