Add back in the ability to suspend/resume all buses from the main
screen. Whoops, it got deleted by accident!
This commit is contained in:
@@ -216,6 +216,16 @@ void ConnectionWindow::connectionStatus(CANConStatus pStatus)
|
|||||||
connModel->refresh();
|
connModel->refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ConnectionWindow::setSuspendAll(bool pSuspend)
|
||||||
|
{
|
||||||
|
QList<CANConnection*>& conns = CANConManager::getInstance()->getConnections();
|
||||||
|
|
||||||
|
foreach(CANConnection* conn_p, conns)
|
||||||
|
conn_p->suspend(pSuspend);
|
||||||
|
|
||||||
|
connModel->refresh();
|
||||||
|
}
|
||||||
|
|
||||||
void ConnectionWindow::saveBusSettings()
|
void ConnectionWindow::saveBusSettings()
|
||||||
{
|
{
|
||||||
int selIdx = ui->tableConnections->currentIndex().row();
|
int selIdx = ui->tableConnections->currentIndex().row();
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ signals:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void getDebugText(QString debugText);
|
void getDebugText(QString debugText);
|
||||||
|
void setSuspendAll(bool pSuspend);
|
||||||
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
void currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
|
|||||||
Reference in New Issue
Block a user