mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
Highlight the current device
This commit is contained in:
@@ -52,6 +52,7 @@ DeviceSetSelectionDialog::DeviceSetSelectionDialog(std::vector<DeviceUISet*>& de
|
||||
m_deviceSetIndexes.push_back(i);
|
||||
}
|
||||
}
|
||||
selectIndex(channelDeviceSetIndex);
|
||||
}
|
||||
|
||||
DeviceSetSelectionDialog::~DeviceSetSelectionDialog()
|
||||
@@ -65,3 +66,14 @@ void DeviceSetSelectionDialog::accept()
|
||||
m_hasChanged = true;
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void DeviceSetSelectionDialog::selectIndex(int channelDeviceSetIndex)
|
||||
{
|
||||
for (int i = 0; i < (int) m_deviceSetIndexes.size(); i++)
|
||||
{
|
||||
if (channelDeviceSetIndex == m_deviceSetIndexes[i]) {
|
||||
ui->workspaceList->setCurrentRow(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user