让图层功能暂时能用了

TaoZhang-Branch
ArgonarioD 2023-03-10 14:08:40 +08:00
parent 14a1502a22
commit 15e2522591
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ QTreeWidgetItem* LayerWrapper::getQTreeItem()
{ {
this->qTreeWidgetItem.setText(0, this->property.name); this->qTreeWidgetItem.setText(0, this->property.name);
this->qTreeWidgetItem.setData(0, Qt::UserRole, QVariant::fromValue(this)); this->qTreeWidgetItem.setData(0, Qt::UserRole, QVariant::fromValue(this));
return new QTreeWidgetItem(this->qTreeWidgetItem); return &this->qTreeWidgetItem;
} }
QTreeWidgetItem* FolderLayerWrapper::getQTreeItem() QTreeWidgetItem* FolderLayerWrapper::getQTreeItem()