Skip to content

Commit 6e8bbae

Browse files
authored
Merge pull request #66 from mhatta/patch-1
static_cast<int> is missing
2 parents 5f1f9ec + 29e888d commit 6e8bbae

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)