enbale sorting for main window and isotp
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -31,6 +31,7 @@ private slots:
|
||||
void filterNone();
|
||||
void interpretCapturedFrames();
|
||||
void useExtendedAddressing(bool checked);
|
||||
void headerClicked(int logicalIndex);
|
||||
|
||||
private:
|
||||
Ui::ISOTP_InterpreterWindow *ui;
|
||||
|
||||
Reference in New Issue
Block a user