SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
addpresetdialog.cpp
Go to the documentation of this file.
1 #include "gui/addpresetdialog.h"
2 #include "ui_addpresetdialog.h"
3 
4 AddPresetDialog::AddPresetDialog(const QStringList& groups, const QString& group, QWidget* parent) :
5  QDialog(parent),
6  ui(new Ui::AddPresetDialog)
7 {
8  ui->setupUi(this);
9  ui->group->addItems(groups);
10  ui->group->lineEdit()->setText(group);
11 }
12 
14 {
15  delete ui;
16 }
17 
18 QString AddPresetDialog::group() const
19 {
20  return ui->group->lineEdit()->text();
21 }
22 
24 {
25  return ui->description->text();
26 }
27 
28 void AddPresetDialog::setGroup(const QString& group)
29 {
30  ui->group->lineEdit()->setText(group);
31 }
32 
34 {
35  ui->description->setText(description);
36 }
37 
39 {
40  ui->description->hide();
41  ui->descriptionLabel->hide();
42 }
43 
44 void AddPresetDialog::setDialogTitle(const QString& title)
45 {
46  setWindowTitle(title);
47 }
48 
49 void AddPresetDialog::setDescriptionBoxTitle(const QString& title)
50 {
51  ui->descriptionBox->setTitle(title);
52 }
void setDialogTitle(const QString &title)
void setGroup(const QString &group)
Ui::AddPresetDialog * ui
void setDescription(const QString &description)
void setDescriptionBoxTitle(const QString &title)
QString description() const
AddPresetDialog(const QStringList &groups, const QString &group, QWidget *parent=NULL)
QString group() const