Added device filter.

This commit is contained in:
2025-12-27 19:49:41 +01:00
parent 139397f045
commit 84e79c8c17
4 changed files with 27 additions and 16 deletions

View File

@@ -46,11 +46,21 @@ void BCDevicePanel::setHeaderText( const QString& headerText)
_headerLabel->setText( headerText );
}
QString BCDevicePanel::getHeaderText()
QString BCDevicePanel::getHeaderText() const
{
return _headerLabel->text();
}
void BCDevicePanel::setDeviceID( BCDevice::ID deviceID )
{
_devideID = deviceID;
}
BCDevice::ID BCDevicePanel::getDeviceID() const
{
return _devideID;
}
QTableView* BCDevicePanel::getValueView()
{
//valueModel;
@@ -73,15 +83,11 @@ QTableView* BCDevicePanel::getValueView()
}
BCValueList& BCDevicePanel::exposeValueList()
{
return _myTmpList;
}
void BCDevicePanel::onValueListReady( BCDevice::ID deviceID, BCValueList valueList )
{
qDebug() << " --- onValueListReady: " << getHeaderText() <<" : " << deviceID << ": " << valueList.size();
_valueModel.setValueList( valueList );
if(_devideID == deviceID)
_valueModel.setValueList( valueList );
}
/*