-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget_infos.cpp
55 lines (44 loc) · 1.75 KB
/
widget_infos.cpp
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
//#include <QVBoxLayout>
//#include "widget_infos.h"
//Widget_infos::Widget_infos(Tache * t, QWidget *parent) :
// QWidget(parent)
//{
// QVBoxLayout * mainlayout = new QVBoxLayout();
// this->setLayout(mainlayout);
// name = new QLabel(QString::fromStdString(t->getNom()));
// //parent = new QLabel("En attente");
// date = new QLabel(QString::fromStdString(t->getDate()));
// timeleft = new QLabel("A faire");
// type = new QLabel();
// if(t->getSousTaches().empty())
// {
// setType("");
// }
// else
// {
// setType("Liste de tches");
// }
// name->setStyleSheet("font-weight : bold; font-size : 18px; ");
// mainlayout->addWidget(name);
// //mainlayout->addWidget(parent);
// mainlayout->addWidget(date);
// mainlayout->addWidget(timeleft);
// mainlayout->addWidget(type);
// // Bouton Nouveau
// QPushButton * boutonAjout = new QPushButton("Ajouter");
// mainlayout->addWidget(boutonAjout);
// QObject::connect(boutonAjout,SIGNAL(clicked()),parent,SLOT(closeDrawer()));
//}
//Widget_infos::~Widget_infos()
//{
//}
//QLabel* Widget_infos::getName(){return name;}
//QLabel* Widget_infos::getParent(){return parent;}
//QLabel* Widget_infos::getDate(){return date;}
//QLabel* Widget_infos::getTimeleft(){return timeleft;}
//QLabel* Widget_infos::getType(){return type;}
//void Widget_infos::setName(string s){name->setText(QString::fromStdString(s));}
//void Widget_infos::setParent(string s){parent->setText(QString::fromStdString(s));}
//void Widget_infos::setDate(string s){date->setText(QString::fromStdString(s));}
//void Widget_infos::setTimeleft(string s){timeleft->setText(QString::fromStdString(s));}
//void Widget_infos::setType(string s){type->setText(QString::fromStdString(s));}