Add Sensor settings dialog
This commit is contained in:
parent
09f7e55b4e
commit
2fbfd1d458
6 changed files with 221 additions and 0 deletions
29
src/ui/sensorsettingsdialog.cpp
Normal file
29
src/ui/sensorsettingsdialog.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "sensorsettingsdialog.h"
|
||||
#include "ui_sensorsettingsdialog.h"
|
||||
|
||||
SensorSettingsDialog::SensorSettingsDialog(const Sensor& sensor, QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::SensorSettingsDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->label_typeValue->setText(QString::number(sensor.type));
|
||||
ui->label_idValue->setText(QString::number(sensor.id));
|
||||
ui->lineEdit_Name->setText(sensor.name);
|
||||
ui->checkBox_Hidden->setChecked(sensor.hidden);
|
||||
}
|
||||
|
||||
SensorSettingsDialog::~SensorSettingsDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
QString SensorSettingsDialog::getName() const
|
||||
{
|
||||
return ui->lineEdit_Name->text();
|
||||
}
|
||||
|
||||
bool SensorSettingsDialog::getHidden() const
|
||||
{
|
||||
return ui->checkBox_Hidden->isChecked();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue