Skip to content

Commit

Permalink
apps/radar/HawkEdit/PolarWidget.cc - line 766, for qt5, use byteCount…
Browse files Browse the repository at this point in the history
…() instead of sizeInBytes()
  • Loading branch information
mike-dixon committed Apr 7, 2024
1 parent 0fc2f04 commit 3719177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codebase/apps/radar/src/HawkEdit/PolarWidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,11 @@ void PolarWidget::paintEvent(QPaintEvent *event)
// TODO: move to sizeInBytes when no longer supporting Centos7;
// byteCount() and numBytes() are obsolete.
//memcpy(m_buffer.bits(), m_base_buffer.bits(), m_buffer.sizeInBytes());
#if QT_VERSION >= 0x060000
memcpy(m_buffer.bits(), m_base_buffer.bits(), m_buffer.sizeInBytes());
#else
memcpy(m_buffer.bits(), m_base_buffer.bits(), m_buffer.byteCount());
#endif

{
QPainter p(&m_buffer);
Expand Down

0 comments on commit 3719177

Please sign in to comment.