-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotesedit.cpp
More file actions
46 lines (36 loc) · 1.25 KB
/
notesedit.cpp
File metadata and controls
46 lines (36 loc) · 1.25 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
40
41
42
43
44
45
46
#include "notesedit.h"
#include "ui_notesedit.h"
NotesEdit::NotesEdit(Version *v, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::NotesEdit)
{
ui->setupUi(this);
// Imposto la versione
version = v;
// Controllo se è già stato creato un percorso per le annotazioni
// Carico le informazioni
// Creo i widget
versionName = new QLabel();
notesSavePath = new QLabel();
projectName = new QLabel();
// Imposto il testo
versionName->setText(version->getName());
notesSavePath->setText(version->getNotesPath());
projectName->setText(version->getProjectName());
// Imposto gli identificatori
versionName->setObjectName("windowStatusLabel");
notesSavePath->setObjectName("windowStatusLabel");
projectName->setObjectName("windowStatusLabel");
// Aggiungo i controlli
ui->statusbar->addPermanentWidget(versionName);
ui->statusbar->addPermanentWidget(new QLabel());
ui->statusbar->addPermanentWidget(notesSavePath);
ui->statusbar->addPermanentWidget(new QLabel());
ui->statusbar->addPermanentWidget(projectName);
// Imposto il titolo della finestra
setWindowTitle("Modifica note per la versione " + version->getNumericId());
}
NotesEdit::~NotesEdit()
{
delete ui;
}