Mini Milestone: Driver loads and connects.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include <bcmainwindow.h>
|
||||
#include <bcvaluedelegate.h>
|
||||
#include <ui_bcmainwindow.h>
|
||||
|
||||
BCMainWindow::BCMainWindow(QWidget *parent)
|
||||
@@ -38,10 +39,18 @@ BCMainWindow::BCMainWindow(QWidget *parent)
|
||||
auto model = _valueManager.getModel( "Console"_L1 );
|
||||
if( model)
|
||||
_valueView->setModel( *model );
|
||||
_valueView->setItemDelegate( new BCValueDelegate( _valueView) );
|
||||
|
||||
connect( _connectButton, &QPushButton::clicked, &_valueManager, &BCValueManager::onToggleConnectionState );
|
||||
}
|
||||
|
||||
BCMainWindow::~BCMainWindow()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void BCMainWindow::onConnectButtonToggled(bool checked )
|
||||
{
|
||||
//_valueManager.setDriverConnectionState( checked );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user