qpidctrl  0.7.1
qcryostreamdevicedialog.cpp
Go to the documentation of this file.
2 #include "ui_qcryostreamdevicedialog.h"
3 #include "qextserialenumerator.h"
4 #include "qcryostreamdevice.h"
5 #include "qpiddebug.h"
6 
8  QDialog(),
10  m_Device(device)
11 {
12  ui->setupUi(this);
13 
15 
16  if (dev) {
17  ui->m_PidDeviceSettings->setDevice(dev);
18  }
19 }
20 
22 {
23  delete ui;
24 }
25 
27 {
29 
30  if (dev) {
31  if (qcepDebug(DEBUG_CRYOSTREAM)) {
32  dev->printMessage("QCryostreamDeviceDialog::accept");
33  }
34 
35  ui->m_PidDeviceSettings->accept();
36  }
37 
38  QDialog::accept();
39 }
Ui::QCryostreamDeviceDialog * ui
QCryostreamDeviceDialog(QCryostreamDeviceWPtr device)
QSharedPointer< QCryostreamDevice > QCryostreamDevicePtr
QCryostreamDeviceWPtr m_Device
QWeakPointer< QCryostreamDevice > QCryostreamDeviceWPtr