QPointer doesn't work with QObject::connect in case of GCC 4.8.

This commit is contained in:
Roman Telezhynskyi 2022-09-12 20:32:39 +03:00
parent c9edbc6310
commit 8059d1c0b8
5 changed files with 5 additions and 5 deletions

View File

@ -176,7 +176,7 @@ void DialogCutArc::ChosenObject(quint32 id, const SceneObject &type)
auto *window = qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
SCASSERT(window != nullptr)
connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
}
}
}

View File

@ -184,7 +184,7 @@ void DialogCutSpline::ChosenObject(quint32 id, const SceneObject &type)
auto *window = qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
SCASSERT(window != nullptr)
connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
}
}
}

View File

@ -184,7 +184,7 @@ void DialogCutSplinePath::ChosenObject(quint32 id, const SceneObject &type)
auto *window = qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
SCASSERT(window != nullptr)
connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
}
}
}

View File

@ -666,7 +666,7 @@ void DialogEllipticalArc::ChosenObject(quint32 id, const SceneObject &type)
{
auto *window = qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
SCASSERT(window != nullptr)
connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
vis->VisualMode(id);
}

View File

@ -329,7 +329,7 @@ void DialogPointOfIntersectionCircles::ChosenObject(quint32 id, const SceneObjec
auto *window = qobject_cast<VAbstractMainWindow *>(
VAbstractValApplication::VApp()->getMainWindow());
SCASSERT(window != nullptr)
connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip);
}
break;
case 2: