1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Fix table sorting

This commit is contained in:
Jon Beniston 2023-05-15 16:44:02 +01:00
parent 733a42fec9
commit 0d9d57f3c3
4 changed files with 4 additions and 4 deletions

View File

@ -222,12 +222,12 @@ void NavtexDemodGUI::messageReceived(const NavtexMessage& message, int errors, f
rssiItem->setData(Qt::DisplayRole, rssi);
}
messageItem->setText(message.m_message);
filterRow(row);
ui->messages->setSortingEnabled(true);
ui->messages->resizeRowToContents(row);
if (scrollToBottom) {
ui->messages->scrollToBottom();
}
filterRow(row);
}
bool NavtexDemodGUI::handleMessage(const Message& message)

View File

@ -193,11 +193,11 @@ void PacketDemodGUI::packetReceived(QByteArray packet)
pidItem->setText(ax25.m_pid);
dataASCIIItem->setText(ax25.m_dataASCII);
dataHexItem->setText(ax25.m_dataHex);
filterRow(row);
ui->packets->setSortingEnabled(true);
if (scrollToBottom) {
ui->packets->scrollToBottom();
}
filterRow(row);
}
else
qDebug() << "Unsupported AX.25 packet: " << packet;

View File

@ -249,11 +249,11 @@ void PagerDemodGUI::messageReceived(const QDateTime dateTime, int address, int f
numericItem->setText(numericMessage);
evenPEItem->setText(QString("%1").arg(evenParityErrors));
bchPEItem->setText(QString("%1").arg(bchParityErrors));
filterRow(row);
ui->messages->setSortingEnabled(true);
if (scrollToBottom) {
ui->messages->scrollToBottom();
}
filterRow(row);
}
bool PagerDemodGUI::handleMessage(const Message& message)

View File

@ -298,11 +298,11 @@ void RadiosondeDemodGUI::frameReceived(const QByteArray& frame, const QDateTime&
eccItem->setData(Qt::DisplayRole, errorsCorrected);
thItem->setData(Qt::DisplayRole, threshold);
filterRow(row);
ui->frames->setSortingEnabled(true);
if (scrollToBottom) {
ui->frames->scrollToBottom();
}
filterRow(row);
delete radiosonde;
}