-
Notifications
You must be signed in to change notification settings - Fork 4
/
mycell.h
71 lines (65 loc) · 2.02 KB
/
mycell.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* @file mycell.h
* This Class defines a table cell item.
* @brief Header file for MyCell class definition.
*
* This class implements a QTableWidgetItem with a specific tags, text alignment and color.
*
* @author Plinio Andrade <PAndrade@fele.com>
* @version 1.0.0.0 (Qt: 5.3.1)
*/
#ifndef MYCELL_H
#define MYCELL_H
#include <QTableWidgetItem>
#include <QString>
#include <QList>
/**
* @brief The MyCell class defines a table cell item.
*
* This class implements a QTableWidgetItem with a specific tags, text alignment and color.
*/
class MyCell: public QTableWidgetItem
{
public:
/**
* @brief Creates a cell item with the given string.
*
* @param text The given string.
*/
MyCell(const QString &text);
//void dropEvent(QDropEvent *event);
//void dragMoveEvent(QDragMoveEvent *event);
//void dragEnterEvent(QDragEnterEvent *event);
//bool dropMimeData(int row, int column, const QMimeData *data, Qt::DropAction action);
void setApptID(int id);
void setApptStylistID(int stylistID);
void setApptStylistName(QString stylistName);
void setApptServiceName(QString serviceName);
void setApptDetails(QString details);
void setApptCustomerName(QString customerName);
void setApptBeginTime (QString beginTime);
void setApptEndTime (QString endTime);
void setMyCellParent(MyCell *parent){
this->MyCellParent = parent;
}
void addMyCellChild(MyCell *child){
this->children->append(child);
}
QList<MyCell *> * getChildenList(){
return this->children;
}
int getApptID();
int getApptStylistID();
QString getApptStylistName();
QString getApptServiceName();
QString getApptDetails();
QString getApptCustomerName();
QString getApptBeginTime();
QString getApptEndTime();
private:
MyCell *MyCellParent;
QList<MyCell *> *children;
int apptID, apptStylistID;
QString *apptServiceName,*apptStylistName, *apptDetails, *apptCustomerName, *apptBeginTime, *apptEndTime;
};
#endif // MYCELL_H