Advanced Settings Panel
[pierogi] / pirselectdeviceform.cpp
index 021cc07..5520be1 100644 (file)
@@ -16,6 +16,10 @@ PIRSelectDeviceForm::PIRSelectDeviceForm(
 {
   ui->setupUi(this);
 
+  // Make sure the user can only select one device at a time:
+  ui->deviceListWidget->setSelectionMode(
+    QAbstractItemView::SingleSelection);
+
   // Don't want to start with the line editor visible:
   ui->searchStringLineEdit->hide();
   ui->searchStringLineEdit->lower();
@@ -94,7 +98,8 @@ void PIRSelectDeviceForm::keyPressEvent(
 }
 
 
-void PIRSelectDeviceForm::on_searchStringLineEdit_textChanged(const QString &arg1)
+void PIRSelectDeviceForm::on_searchStringLineEdit_textChanged(
+  const QString &arg1)
 {
   filterListByString(arg1);
 }