-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathinforequestdialog.cpp
More file actions
32 lines (26 loc) · 843 Bytes
/
Copy pathinforequestdialog.cpp
File metadata and controls
32 lines (26 loc) · 843 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
#include "inforequestdialog.h"
#include "ui_inforequestdialog.h"
#include "style.h"
InfoRequestDialog::InfoRequestDialog(QString name, QString serial,
QString license, QWidget *parent) :
QDialog(parent),
ui(new Ui::InfoRequestDialog)
{
ui->setupUi(this);
QString style;
style = Style::dialog();
style += Style::label();
style += Style::lineEdit();
setStyleSheet(style);
style = "QDialogButtonBox " + Style::pushButton();
ui->buttonBox->setStyleSheet(style);
setWindowTitle(tr("Register device"));
ui->lineEditName->setText(name);
ui->lineEditSerial->setText(serial);
ui->lineEditLicense->setText(license);
}
InfoRequestDialog::~InfoRequestDialog()
{
delete ui;
}
QString InfoRequestDialog::license() { return ui->lineEditLicense->text(); }