File: addpresetdialog.cpp

package info (click to toggle)
sdrangelove 0.0.1.20140824-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,560 kB
  • ctags: 2,668
  • sloc: cpp: 17,760; ansic: 142; makefile: 17; sh: 1
file content (26 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (3)
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
#include "gui/addpresetdialog.h"
#include "ui_addpresetdialog.h"

AddPresetDialog::AddPresetDialog(const QStringList& groups, const QString& group, QWidget* parent) :
	QDialog(parent),
	ui(new Ui::AddPresetDialog)
{
	ui->setupUi(this);
	ui->group->addItems(groups);
	ui->group->lineEdit()->setText(group);
}

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

QString AddPresetDialog::group() const
{
	return ui->group->lineEdit()->text();
}

QString AddPresetDialog::description() const
{
	return ui->description->text();
}