Fix Qt6 deprecated APIs: QCheckBox::checkStateChanged, ExploratoryLocationViewshed

- Replace QCheckBox::stateChanged with checkStateChanged in:
  - lts_dialog.cpp
  - simple_esri_layer.cpp (2 occurrences)
  - layer_control_widget.cpp
  - symbol_dialog.cpp
- Replace LocationViewshed with ExploratoryLocationViewshed (ArcGIS SDK v300):
  - viewshed_analysis.h/.cpp
  - ViewshedLocation.h/.cpp
  - function_dialog.cpp (include)
- Update ViewshedLocation member variable type to ExploratoryLocationViewshed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-10-13 14:41:33 +02:00
1 parent e581d1e91c
commit 124fbb4de8
1079 files changed
+111705 -17

No files matched your search

@@ -374,7 +374,7 @@ bool LayerControlWidget::updatePanelLayer()
if (!tooltip.isEmpty())
cbOnOff->setToolTip(tooltip);
connect(cbOnOff, &QCheckBox::stateChanged, this, &LayerControlWidget::layerOnOff);
connect(cbOnOff, &QCheckBox::checkStateChanged, this, &LayerControlWidget::layerOnOff);
d->m_mapLayerLayout->addWidget(cbOnOff, row, col++);
@@ -16,7 +16,7 @@
#include <AnalysisOverlay.h>
#include <AnalysisListModel.h>
#include <LocationViewshed.h>
#include <ExploratoryLocationViewshed.h>
// Qt
#include <QDebug>
@@ -72,7 +72,7 @@ bool ViewshedAnalysis::execute(const QPointF &viewshedPoint_map_degree, double o
for (int i = 0; i < m_viewsheds.size(); ++i)
{
Esri::ArcGISRuntime::LocationViewshed *viewshed = m_viewsheds[i];
Esri::ArcGISRuntime::ExploratoryLocationViewshed *viewshed = m_viewsheds[i];
if (viewshed)
{
@@ -80,7 +80,7 @@ bool ViewshedAnalysis::execute(const QPointF &viewshedPoint_map_degree, double o
delete viewshed;
}
viewshed = new Esri::ArcGISRuntime::LocationViewshed(viewshedCenter
viewshed = new Esri::ArcGISRuntime::ExploratoryLocationViewshed(viewshedCenter
, heading
, 90.0 // pitch limited to 180
, deltaHeading // horizontalAngle limited to 120, from release 100.3 maximum is 360 here
@@ -21,7 +21,7 @@ namespace ArcGISRuntime
{
class AnalysisOverlay;
class AnalysisOverlayListModel;
class LocationViewshed;
class ExploratoryLocationViewshed;
class SceneGraphicsView;
}
}
@@ -51,11 +51,11 @@ protected slots:
private:
Esri::ArcGISRuntime::AnalysisOverlayListModel *m_analysisOverlayModel;
Esri::ArcGISRuntime::AnalysisOverlay *m_analysisOverlay;
QVector<Esri::ArcGISRuntime::LocationViewshed *> m_viewsheds;
Esri::ArcGISRuntime::AnalysisOverlayListModel *m_analysisOverlayModel;
Esri::ArcGISRuntime::AnalysisOverlay *m_analysisOverlay;
QVector<Esri::ArcGISRuntime::ExploratoryLocationViewshed *> m_viewsheds;
LOGGER_T m_logger;
LOGGER_T m_logger;
};