Inserts first successfull qt6 migration Lts/Viewer
This commit is contained in:
29 files changed
+238
-18437
No files matched your search
+4
-4
@@ -85,12 +85,12 @@ void ViewshedLocation::connectSignals()
|
||||
connect(m_sceneView, &SceneGraphicsView::mouseClicked, this, [this](QMouseEvent& event)
|
||||
{
|
||||
if (!m_locationViewshed[0])
|
||||
createViewshed(event.x(), event.y());
|
||||
createViewshed(event.position().x(), event.position().y());
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
const Point pt = m_sceneView->screenToBaseSurface(event.x(), event.y());
|
||||
const Point pt = m_sceneView->screenToBaseSurface(event.position().x(), event.position().y());
|
||||
m_locationViewshed[i]->setLocation(pt);
|
||||
}
|
||||
}
|
||||
@@ -99,7 +99,7 @@ void ViewshedLocation::connectSignals()
|
||||
connect(m_sceneView, &SceneGraphicsView::mousePressedAndHeld, this, [this](QMouseEvent& event)
|
||||
{
|
||||
if (!m_locationViewshed[0])
|
||||
createViewshed(event.x(), event.y());
|
||||
createViewshed(event.position().x(), event.position().y());
|
||||
|
||||
m_calculating = true;
|
||||
});
|
||||
@@ -110,7 +110,7 @@ void ViewshedLocation::connectSignals()
|
||||
{
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
const Point pt = m_sceneView->screenToBaseSurface(event.x(), event.y());
|
||||
const Point pt = m_sceneView->screenToBaseSurface(event.position().x(), event.position().y());
|
||||
m_locationViewshed[i]->setLocation(pt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user