-- fy.
This commit is contained in:
@@ -30,14 +30,17 @@
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include <_mingw_mac.h>
|
||||
#include <bcdevicepanel.h>
|
||||
#include <bcdelegate.h>
|
||||
|
||||
BCDevicePanel::BCDevicePanel(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
_valueView->setModel( &_valueModel );
|
||||
//_valueView->resizeColumnsToContents();
|
||||
_valueView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||
_valueView->setItemDelegate( new BCDelegate( _valueView) );
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +59,7 @@ void BCDevicePanel::setDeviceID( BCDevice::ID deviceID )
|
||||
{
|
||||
_devideID = deviceID;
|
||||
}
|
||||
|
||||
BCDevice::ID BCDevicePanel::getDeviceID() const
|
||||
{
|
||||
return _devideID;
|
||||
@@ -64,24 +68,7 @@ BCDevice::ID BCDevicePanel::getDeviceID() const
|
||||
|
||||
QTableView* BCDevicePanel::getValueView()
|
||||
{
|
||||
//valueModel;
|
||||
return _valueView;
|
||||
|
||||
// Die Daten und auch die Datenmodelle für die Views werden
|
||||
// vom DataManager verwaltet und an die Views weitergereicht.
|
||||
|
||||
//auto model = _dataManager.getModel( BCDevice::ID::Console );
|
||||
//_consolePanel->getValueView()->setModel( model.v );
|
||||
|
||||
/*
|
||||
if( model)
|
||||
{
|
||||
_valueView->setModel( *model );
|
||||
_valueView->resizeColumnsToContents();
|
||||
//_valueView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
const BCValueList& BCDevicePanel::getValueListX()
|
||||
@@ -104,10 +91,3 @@ void BCDevicePanel::onValueListReady( BCDevice::ID deviceID, BCValueList valueLi
|
||||
|
||||
|
||||
|
||||
/*
|
||||
QTableView* BCDevicePanel::setValueView()
|
||||
{
|
||||
return _valueView;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user