Skip to content

Commit

Permalink
Fix up triggerdialog to work with new QT6 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
collin80 committed Dec 1, 2023
1 parent 4aae2ae commit bf11ea7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions triggerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ TriggerDialog::TriggerDialog(QList<Trigger> trigs, QWidget *parent) :
for (int i = 0; i < numFiles; i++)
{
DBCFile *file = dbcHandler->getFileByIdx(i);
QList<DBC_MESSAGE *> msgs = file->messageHandler->getMsgsAsList();
int numMsgs = file->messageHandler->getCount();
for (int j = 0; j < numMsgs; j++)
{
DBC_MESSAGE *msg = file->messageHandler->findMsgByIdx(j);
DBC_MESSAGE *msg = msgs[j];
entries.append(("0x" + QString::number(msg->ID, 16) + " (" + msg->name + ")"));
}
}
Expand Down Expand Up @@ -185,9 +186,10 @@ void TriggerDialog::regenerateCurrentListItem()
//if possible.
DBC_MESSAGE *msg = dbcHandler->findMessage(trig.ID);
int numSigs = msg->sigHandler->getCount();
QList<DBC_SIGNAL *> sigs = msg->sigHandler->getSignalsAsList();
for (int s = 0; s < numSigs; s++)
{
DBC_SIGNAL *sig = msg->sigHandler->findSignalByIdx(s);
DBC_SIGNAL *sig = sigs[s];

entries.append(sig->name);
}
Expand Down

0 comments on commit bf11ea7

Please sign in to comment.