55 |
refreshDevices(); |
refreshDevices(); |
56 |
// Try to restore normal window positioning. |
// Try to restore normal window positioning. |
57 |
adjustSize(); |
adjustSize(); |
58 |
|
|
59 |
|
QObject::connect(ui.DeviceListView, |
60 |
|
SIGNAL(selectionChanged()), |
61 |
|
SLOT(selectDevice())); |
62 |
|
QObject::connect(ui.DeviceListView, |
63 |
|
SIGNAL(contextMenuRequested(QListViewItem*,const QPoint&,int)), |
64 |
|
SLOT(contextMenu(QListViewItem*,const QPoint&,int))); |
65 |
|
QObject::connect(ui.RefreshDevicesPushButton, |
66 |
|
SIGNAL(clicked()), |
67 |
|
SLOT(refreshDevices())); |
68 |
|
QObject::connect(ui.DriverNameComboBox, |
69 |
|
SIGNAL(activated(const QString&)), |
70 |
|
SLOT(selectDriver(const QString&))); |
71 |
|
QObject::connect(ui.DevicePortComboBox, |
72 |
|
SIGNAL(activated(int)), |
73 |
|
SLOT(selectDevicePort(int))); |
74 |
|
QObject::connect(ui.CreateDevicePushButton, |
75 |
|
SIGNAL(clicked()), |
76 |
|
SLOT(createDevice())); |
77 |
|
QObject::connect(ui.DeleteDevicePushButton, |
78 |
|
SIGNAL(clicked()), |
79 |
|
SLOT(deleteDevice())); |
80 |
|
QObject::connect(ui.ClosePushButton, |
81 |
|
SIGNAL(clicked()), |
82 |
|
SLOT(close())); |
83 |
} |
} |
84 |
|
|
85 |
DeviceForm::~DeviceForm() { |
DeviceForm::~DeviceForm() { |