tab切换,改变LayerTreeModel的setCurrentIndex

This commit is contained in:
tangchao0503
2026-03-16 15:06:30 +08:00
parent 7473a45f41
commit 30fa211a22
3 changed files with 47 additions and 0 deletions

View File

@ -35,6 +35,9 @@ public slots:
// Get associated widget by layer absolute data path
QWidget* widgetForLayer(const QString& absolutePath) const;
// Reverse lookup: find the MapLayer associated with a given widget (or nullptr)
MapLayer* layerForWidget(QWidget* widget) const;
signals:
void layerAdded(MapLayer* layer);
// Emitted just before the layer is destroyed/removed from store