File: propertiesdialog.cpp

package info (click to toggle)
qspeakers 1.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 900 kB
  • sloc: cpp: 4,593; xml: 708; sh: 13; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
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 "propertiesdialog.h"
#include "ui_propertiesdialog.h"

PropertiesDialog::PropertiesDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::PropertiesDialog)
{
    ui->setupUi(this);
}

PropertiesDialog::~PropertiesDialog()
{
    delete ui;
}

void PropertiesDialog::setTitle(const QString &title)
{
    ui->titleLineEdit->setText(title);
}

void PropertiesDialog::setNote(const QString &note)
{
    ui->noteTextEdit->setPlainText(note);
}

QString PropertiesDialog::getTitle()
{
    return ui->titleLineEdit->text();
}

QString PropertiesDialog::getNote()
{
    return ui->noteTextEdit->toPlainText();
}