void QuteMessenger::deviceDiscoveryCompleteReport() { disconnect(devDisc, SIGNAL(newDeviceFound(QBtDevice)), this, SLOT(populateDeviceList(QBtDevice))); disconnect(devDisc, SIGNAL(discoveryStopped()), this, SLOT(deviceDiscoveryCompleteReport())); if (dialog) { dialog->hide(); delete dialog; } }
void BTSettingsMainWindow::init() { MyDevicesDisplay *pairedDevices = new MyDevicesDisplay(m_localDevice); m_tabs->setUpdatesEnabled(false); QString title = m_tabs->tabText(1); delete m_tabs->widget(1); m_tabs->insertTab(1, pairedDevices, title); m_tabs->setUpdatesEnabled(true); connect(m_controller, SIGNAL(powerStateChanged(QCommDeviceController::PowerState)), SLOT(setTabsEnabled(QCommDeviceController::PowerState))); setTabsEnabled(m_controller->powerState()); QTimer::singleShot(200, pairedDevices, SLOT(populateDeviceList())); }
void QuteMessenger::startDeviceDiscovery() { SetupMenu(true); if (devDisc) { ui.deviceListWidget->clear(); foundDevices.clear(); connect(devDisc, SIGNAL(newDeviceFound(QBtDevice)), this, SLOT(populateDeviceList(QBtDevice))); connect(devDisc, SIGNAL(discoveryStopped()), this, SLOT(deviceDiscoveryCompleteReport())); devDisc->startDiscovery(); dialog = new QProgressDialog("Searching devices...", "Stop", 0, 0, this); dialog->setWindowModality(Qt::WindowModal); connect(dialog, SIGNAL(canceled()), this, SLOT(deviceDiscoveryCompleteReport())); dialog->setBar(NULL); dialog->show(); } }
void PortAudioSettingsPage::hostAPIIndexChanged(int) { populateDeviceList(); autoselectDevice(); }
RealSenseDeviceManager::RealSenseDeviceManager () { populateDeviceList (); }