removed callback support
This commit is contained in:
@@ -80,11 +80,6 @@ ConnectionWindow::ConnectionWindow(CANFrameModel *cModel, QWidget *parent) :
|
||||
mTicker.setInterval(500); /*tick twice a second */
|
||||
mTicker.setSingleShot(false);
|
||||
mTicker.start();
|
||||
|
||||
/*test*/
|
||||
/* retrieve pointer on method */
|
||||
int methodIndex = metaObject()->indexOfMethod(QMetaObject::normalizedSignature("refreshCanList()"));
|
||||
mRefreshM = metaObject()->method(methodIndex);
|
||||
}
|
||||
|
||||
ConnectionWindow::~ConnectionWindow()
|
||||
@@ -130,19 +125,6 @@ void ConnectionWindow::refreshCanList() {
|
||||
mRefreshReqOngoing.store(FALSE);
|
||||
}
|
||||
|
||||
/*test*/
|
||||
void ConnectionWindow::callback(CANCon::cbtype pType)
|
||||
{
|
||||
if(mRefreshReqOngoing.testAndSetRelaxed(FALSE, TRUE))
|
||||
{
|
||||
/* ask for a refresh */
|
||||
mRefreshM.invoke(this, Qt::AutoConnection);
|
||||
}
|
||||
else {
|
||||
//qDebug() << "skip event";
|
||||
}
|
||||
}
|
||||
|
||||
void ConnectionWindow::handleNewConn()
|
||||
{
|
||||
ui->tableConnections->selectionModel()->clearSelection();
|
||||
|
||||
Reference in New Issue
Block a user