Skip to content

Commit

Permalink
Update flowviewwindow.cpp
Browse files Browse the repository at this point in the history
Actually fixed missing graphs in flow view
  • Loading branch information
collin80 committed Dec 11, 2024
1 parent 1e2f17c commit 23ea091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion re/flowviewwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ void FlowViewWindow::handleTableCellChange(int row, int col)
{
if (graphRef[row]) ui->graphView->removeGraph(graphRef[row]);
graphRef[row] = nullptr;
qDebug() << "Removed graph #" << row;
}
//if (!graphRef[row]) return;
//graphRef[row]->setVisible( (ui->tableBytes->item(row, col)->checkState()==Qt::Checked)?true:false );
Expand Down Expand Up @@ -621,6 +622,7 @@ void FlowViewWindow::createGraph(int byteNum)
bool graphByTime = ui->cbTimeGraph->isChecked();

int numEntries = frameCache.count();
qDebug() << "Number of entries:" << numEntries;

x[byteNum].clear();
y[byteNum].clear();
Expand Down Expand Up @@ -661,7 +663,7 @@ void FlowViewWindow::createGraph(int byteNum)
ui->graphView->graph()->setData(x[byteNum],y[byteNum]);
ui->graphView->graph()->setLineStyle(QCPGraph::lsLine); //connect points with lines
QPen graphPen;
graphPen.setColor(graphColors[byteNum]);
graphPen.setColor(graphColors[byteNum % 8]);
graphPen.setWidth(1);
ui->graphView->graph()->setPen(graphPen);
ui->graphView->axisRect()->setupFullAxesBox();
Expand Down

0 comments on commit 23ea091

Please sign in to comment.