From 8059d1c0b854bda67134742ebce03fdf7b757529 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 12 Sep 2022 20:32:39 +0300 Subject: [PATCH] QPointer doesn't work with QObject::connect in case of GCC 4.8. --- src/libs/vtools/dialogs/tools/dialogcutarc.cpp | 2 +- src/libs/vtools/dialogs/tools/dialogcutspline.cpp | 2 +- src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp | 2 +- src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp | 2 +- .../vtools/dialogs/tools/dialogpointofintersectioncircles.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/dialogcutarc.cpp b/src/libs/vtools/dialogs/tools/dialogcutarc.cpp index fd9b7dd02..7271c30c5 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutarc.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutarc.cpp @@ -176,7 +176,7 @@ void DialogCutArc::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogcutspline.cpp b/src/libs/vtools/dialogs/tools/dialogcutspline.cpp index 4ec959573..1a33679e1 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutspline.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutspline.cpp @@ -184,7 +184,7 @@ void DialogCutSpline::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp b/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp index 16205fe19..ffee728fb 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp @@ -184,7 +184,7 @@ void DialogCutSplinePath::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp b/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp index 418935720..95dc3d0c2 100644 --- a/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp +++ b/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp @@ -666,7 +666,7 @@ void DialogEllipticalArc::ChosenObject(quint32 id, const SceneObject &type) { auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); vis->VisualMode(id); } diff --git a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp index 4a613ed3a..91f102f75 100644 --- a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp @@ -329,7 +329,7 @@ void DialogPointOfIntersectionCircles::ChosenObject(quint32 id, const SceneObjec auto *window = qobject_cast( VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } break; case 2: