Skip to content

Commit

Permalink
static_cast<int> is missing
Browse files Browse the repository at this point in the history
Building with Visual Studio 2022 and Qt 6.6.2 gets errors without this.
  • Loading branch information
mhatta authored Feb 23, 2024
1 parent 5f1f9ec commit 29e888d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/graphview/graphview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void GraphView::mouseMoveEvent(QMouseEvent *e)
{

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QPoint delta{m_scrollbase.x() - e->position().x(), m_scrollbase.y() - e->position().y()};
QPoint delta{static_cast<int>(m_scrollbase.x() - e->position().x()), static_cast<int>(m_scrollbase.y() - e->position().y())};
#else
QPoint delta{m_scrollbase.x() - e->pos().x(), m_scrollbase.y() - e->pos().y()};
#endif
Expand Down

0 comments on commit 29e888d

Please sign in to comment.