1、添加layerTree节点类型:image,然后修改LayerTreeLayer,继承LayerTreeGroup。
This commit is contained in:
tangchao0503
2026-05-11 11:13:21 +08:00
parent e43d60e264
commit eda0a01098
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#include "LayerTreeLayerNode.h"
LayerTreeLayer::LayerTreeLayer(MapLayer* layer, QObject* parent)
: LayerTreeNode(layer ? layer->name() : QString(), parent), m_layer(layer)
: LayerTreeGroup(layer ? layer->name() : QString(), parent), m_layer(layer)
{
}