From 89b4642c164ee35f9b358212a1e8cb2f21e271ff Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 11 May 2018 13:14:57 +0300 Subject: [PATCH] Fix build fail. --HG-- branch : develop --- src/libs/vwidgets/vmaingraphicsview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vwidgets/vmaingraphicsview.cpp b/src/libs/vwidgets/vmaingraphicsview.cpp index 09ff75522..cd145e436 100644 --- a/src/libs/vwidgets/vmaingraphicsview.cpp +++ b/src/libs/vwidgets/vmaingraphicsview.cpp @@ -191,8 +191,8 @@ void GraphicsViewZoom::InitScrollingAnimation() verticalScrollAnim = new QTimeLine(settings->GetScrollingDuration(), this); verticalScrollAnim->setUpdateInterval(settings->GetScrollingUpdateInterval()); - connect(verticalScrollAnim, &QTimeLine::valueChanged, this, &GraphicsViewZoom::VerticalScrollingTime); - connect(verticalScrollAnim, &QTimeLine::finished, this, &GraphicsViewZoom::animFinished); + connect(verticalScrollAnim.data(), &QTimeLine::valueChanged, this, &GraphicsViewZoom::VerticalScrollingTime); + connect(verticalScrollAnim.data(), &QTimeLine::finished, this, &GraphicsViewZoom::animFinished); if (not horizontalScrollAnim.isNull()) { @@ -202,8 +202,8 @@ void GraphicsViewZoom::InitScrollingAnimation() horizontalScrollAnim = new QTimeLine(settings->GetScrollingDuration(), this); horizontalScrollAnim->setUpdateInterval(settings->GetScrollingUpdateInterval()); - connect(horizontalScrollAnim, &QTimeLine::valueChanged, this, &GraphicsViewZoom::HorizontalScrollingTime); - connect(horizontalScrollAnim, &QTimeLine::finished, this, &GraphicsViewZoom::animFinished); + connect(horizontalScrollAnim.data(), &QTimeLine::valueChanged, this, &GraphicsViewZoom::HorizontalScrollingTime); + connect(horizontalScrollAnim.data(), &QTimeLine::finished, this, &GraphicsViewZoom::animFinished); } //---------------------------------------------------------------------------------------------------------------------