-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwnotearch.cpp
34 lines (23 loc) · 842 Bytes
/
wnotearch.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
#include "wnotearch.h"
CentreNoteArch::CentreNoteArch(Note *note, QWidget *parent):
QWidget(parent) {
setFixedSize(300,350);
titre_id = new QLabel(this);
titre_id->setText("La note archivee d'identifiant: "+note->getId());
versions = new QListWidget(this);
for (Note::iterator it = note->begin(); it != note->end(); it++) {
versions->addItem((*it)->getTitle());
}
afficher = new QPushButton("Afficher",this);
fermer = new QPushButton("Fermer",this);
connect(fermer, SIGNAL(clicked()), this, SLOT(close()));
horiz = new QHBoxLayout;
horiz->addWidget(afficher);
//horiz->addWidget(restaurer);
horiz->addWidget(fermer);
verti = new QVBoxLayout;
verti->addWidget(titre_id);
verti->addWidget(versions);
verti->addLayout(horiz);
setLayout(verti);
}