diff options
Diffstat (limited to 'src/projectdialog.cc')
-rw-r--r-- | src/projectdialog.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/projectdialog.cc b/src/projectdialog.cc index c52d110..b5fb87d 100644 --- a/src/projectdialog.cc +++ b/src/projectdialog.cc @@ -30,6 +30,7 @@ #include <QLabel> #include <QLineEdit> +#include <QTextEdit> #include <QPushButton> #include <QFileDialog> @@ -51,12 +52,14 @@ ProjectDialog::ProjectDialog(QWidget* parent, Project& project) int idx = 0; name = new QLineEdit(); + name->setText(project.getProjectName()); layout->addWidget(new QLabel(tr("Name of the project:")), idx, 0, 1, 2); idx++; - layout->addWidget(name, idx, 0); + layout->addWidget(name, idx, 0, 1, 2); idx++; raw_dir = new QLineEdit(); + raw_dir->setText(project.getRawFileRoot()); auto btn = new QPushButton(tr("...")); btn->setMaximumWidth(32); connect(btn, SIGNAL(clicked()), this, SLOT(chooseRawFilesDir())); @@ -66,6 +69,13 @@ ProjectDialog::ProjectDialog(QWidget* parent, Project& project) layout->addWidget(btn, idx, 1); idx++; + description = new QTextEdit(); + description->setText(project.getProjectDescription()); + layout->addWidget(new QLabel(tr("Description of the project:")), idx, 0, 1, 2); + idx++; + layout->addWidget(description, idx, 0, 1, 2); + idx++; + auto buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | @@ -97,4 +107,5 @@ void ProjectDialog::apply() Project::RAIIBulkUpdate bulkUpdate(project); project.setProjectName(name->text()); project.setRawFileRoot(raw_dir->text()); + project.setProjectDescription(description->toPlainText()); } |