enbale sorting for main window and isotp

This commit is contained in:
semant1ka
2017-10-26 21:55:51 +03:00
parent 88bd90f51a
commit 0883709f58
4 changed files with 15 additions and 6 deletions
+7
View File
@@ -42,12 +42,19 @@ ISOTP_InterpreterWindow::ISOTP_InterpreterWindow(const QVector<CANFrame> *frames
ui->tableIsoFrames->setHorizontalHeaderLabels(headers);
QHeaderView *HorzHdr = ui->tableIsoFrames->horizontalHeader();
HorzHdr->setStretchLastSection(true);
connect(HorzHdr, SIGNAL(sectionClicked(int)), this, SLOT(headerClicked(int)));
decoder->setReception(true);
decoder->setFlowCtrl(false);
decoder->setProcessAll(true);
}
void ISOTP_InterpreterWindow::headerClicked(int logicalIndex)
{
ui->tableIsoFrames->sortByColumn(logicalIndex);
}
ISOTP_InterpreterWindow::~ISOTP_InterpreterWindow()
{
delete decoder;