GCC warning.
--HG-- branch : develop
This commit is contained in:
parent
58ca1b3110
commit
a5e4261e55
|
@ -307,11 +307,17 @@ void DialogFinalMeasurements::MoveUp()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wstrict-overflow")
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||||
Move(m_measurements, row, row-1);
|
Move(m_measurements, row, row-1);
|
||||||
#else
|
#else
|
||||||
m_measurements.move(row, row-1);
|
m_measurements.move(row, row-1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
UpdateTree();
|
UpdateTree();
|
||||||
|
|
||||||
ui->tableWidget->selectRow(row-1);
|
ui->tableWidget->selectRow(row-1);
|
||||||
|
@ -327,11 +333,17 @@ void DialogFinalMeasurements::MoveDown()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wstrict-overflow")
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||||
Move(m_measurements, row, row+1);
|
Move(m_measurements, row, row+1);
|
||||||
#else
|
#else
|
||||||
m_measurements.move(row, row+1);
|
m_measurements.move(row, row+1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
UpdateTree();
|
UpdateTree();
|
||||||
|
|
||||||
ui->tableWidget->selectRow(row+1);
|
ui->tableWidget->selectRow(row+1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user