-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpropertiesdialog.cpp
More file actions
35 lines (29 loc) · 649 Bytes
/
Copy pathpropertiesdialog.cpp
File metadata and controls
35 lines (29 loc) · 649 Bytes
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
#include "propertiesdialog.h"
#include "ui_propertiesdialog.h"
PropertiesDialog::PropertiesDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::PropertiesDialog)
{
ui->setupUi(this);
setMinimumSize(600, 400);
}
PropertiesDialog::~PropertiesDialog()
{
delete ui;
}
void PropertiesDialog::setTitle(const QString &title)
{
ui->titleLineEdit->setText(title);
}
void PropertiesDialog::setNote(const QString ¬e)
{
ui->noteTextEdit->setPlainText(note);
}
QString PropertiesDialog::getTitle()
{
return ui->titleLineEdit->text();
}
QString PropertiesDialog::getNote()
{
return ui->noteTextEdit->toPlainText();
}