Skip to content

Commit

Permalink
A few small fixes to allow compiling with QT6
Browse files Browse the repository at this point in the history
  • Loading branch information
collin80 committed May 1, 2024
1 parent 7587dd7 commit a954f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void MainWindow::processSenderCellChange(int line, int col)
}
break;
case SIMP_COL::SC_COL_DATA: //Data bytes
for (int i = 0; i < 8; i++) tempData->payload().data()[i] = 0;
//for (int i = 0; i < 8; i++) tempData->payload().data()[i] = 0;

#if QT_VERSION >= QT_VERSION_CHECK( 5, 14, 0 )
tokens = ui->tableSimpleSender->item(line, SIMP_COL::SC_COL_DATA)->text().split(" ", Qt::SkipEmptyParts);
Expand Down
2 changes: 1 addition & 1 deletion re/graphingwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void GraphingWindow::saveSpreadsheet()
for (auto && graph : graphParams) {
xMin = std::min(xMin, graph.x[0]);
xMax = std::max(xMax, graph.x[graph.x.count() - 1]);
maxCount = std::max(maxCount, graph.x.count());
maxCount = std::max((qsizetype)maxCount, graph.x.count());
}
qDebug() << "xMin: " << xMin;
qDebug() << "xMax: " << xMax;
Expand Down

0 comments on commit a954f2e

Please sign in to comment.