qpidctrl  0.7.1
qwatlowdevicedialog.cpp
Go to the documentation of this file.
1 #include "qwatlowdevicedialog.h"
2 #include "ui_qwatlowdevicedialog.h"
3 #include "qwatlowdevice.h"
4 #include "qextserialenumerator.h"
5 #include "qpiddebug.h"
6 
8  QDialog(),
9  ui(new Ui::QWatlowDeviceDialog),
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_WATLOW)) {
32  dev->printMessage("QWatlowDeviceDialog::accept");
33  }
34 
35  ui->m_PidDeviceSettings->accept();
36  }
37 
38  QDialog::accept();
39 }
QWatlowDeviceWPtr m_Device
Ui::QWatlowDeviceDialog * ui
QWeakPointer< QWatlowDevice > QWatlowDeviceWPtr
QWatlowDeviceDialog(QWatlowDeviceWPtr device)
QSharedPointer< QWatlowDevice > QWatlowDevicePtr