Skip to content

Commit 29e888d

Browse files
authored
static_cast<int> is missing
Building with Visual Studio 2022 and Qt 6.6.2 gets errors without this.
1 parent 5f1f9ec commit 29e888d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/graphview/graphview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void GraphView::mouseMoveEvent(QMouseEvent *e)
157157
{
158158

159159
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
160-
QPoint delta{m_scrollbase.x() - e->position().x(), m_scrollbase.y() - e->position().y()};
160+
QPoint delta{static_cast<int>(m_scrollbase.x() - e->position().x()), static_cast<int>(m_scrollbase.y() - e->position().y())};
161161
#else
162162
QPoint delta{m_scrollbase.x() - e->pos().x(), m_scrollbase.y() - e->pos().y()};
163163
#endif

0 commit comments

Comments
 (0)