Added dynamic update support to flowView as well. As in the frame details view, it currently does not do realtime updates as frames come in but will update when a new file is loaded.

This commit is contained in:
Collin Kidder
2015-06-03 22:02:40 -04:00
parent c1a490c911
commit 97f7db4e62
3 changed files with 59 additions and 1 deletions
+20 -1
View File
@@ -50,7 +50,26 @@ void FrameInfoWindow::updatedFrames(int numFrames)
}
else //just got some new frames. See if they are relevant.
{
//not done yet. :(
int currID = ui->listFrameID->currentItem()->text().toInt(NULL, 16);
bool foundID = false;
for (int x = modelFrames->count() - numFrames; x < modelFrames->count(); x++)
{
if (currID = modelFrames->at(x).ID)
{
foundID = true;
break;
}
}
if (foundID)
{
//the problem here is that it'll blast us out of the details as soon as this
//happens. The only way to do this properly is to actually traverse
//the details structure and change the text. We don't do that yet.
//so, the line is commented out. If people need to see the updated
//data they can click another ID and back and it'll be OK
//updateDetailsWindow(ui->listFrameID->currentItem()->text());
}
}
}