Added device filter.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user