This repository was archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathediterdossier.cpp
More file actions
39 lines (33 loc) · 1.36 KB
/
editerdossier.cpp
File metadata and controls
39 lines (33 loc) · 1.36 KB
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
#include "editerdossier.h"
#include "ui_editerdossier.h"
editerDossier::editerDossier(QWidget *parent) :
QDialog(parent),
ui(new Ui::editerDossier)
{
ui->setupUi(this);
TemplateManager<Formation>& tForm=TemplateManager<Formation>::getInstance();
ui->FormationTable->setRowCount(tForm.size());
//ui->FormationTable->setColumnCount(2);
for(unsigned int i=0; i<tForm.size(); i++)
{
QTableWidgetItem* nom=new QTableWidgetItem(tForm.getIterator()[i].getNom());
QCheckBox* choisir=new QCheckBox();
ui->FormationTable->setCellWidget(i, 1, choisir);
nom->setFlags(Qt::ItemFlag::ItemIsEnabled);
ui->FormationTable->setItem(i, 0, nom);
//config du suppr
// QSignalMapper* sig = new QSignalMapper(this);
// QObject::connect(suppr, SIGNAL(clicked()), sig, SLOT(map()));
// sig->setMapping(suppr, i);
// QObject::connect(sig, SIGNAL(mapped(int)), this, SLOT(deleteFormation(int)));
// //config modif
// QSignalMapper* sig2 = new QSignalMapper(this);
// QObject::connect(modif, SIGNAL(clicked()), sig2, SLOT(map()));
// sig->setMapping(modif, i);
// QObject::connect(sig, SIGNAL(mapped(int)), this, SLOT(modifierFormation(int)));}
}
}
editerDossier::~editerDossier()
{
delete ui;
}