From c840f4ff3fe6ef26b7dd4562614e24d20cceed8a Mon Sep 17 00:00:00 2001
From: pimin <362371171@qq.com>
Date: Sun, 2 Nov 2025 18:26:08 +0800
Subject: [PATCH] modify model tree widget
---
src/translations/Dyt_zh_CN.ts | 133 ++++++++++--------------
src/ui/ModelBrowser/ModelTreeWidget.cpp | 1 +
2 files changed, 55 insertions(+), 79 deletions(-)
diff --git a/src/translations/Dyt_zh_CN.ts b/src/translations/Dyt_zh_CN.ts
index 4189cdde..59f479bf 100644
--- a/src/translations/Dyt_zh_CN.ts
+++ b/src/translations/Dyt_zh_CN.ts
@@ -2000,32 +2000,32 @@
-
+
Wave文件
-
+
Report文件
-
+
RD文件
-
+
Matlab文件
-
+
Lamp文件
-
+
Run Simu
@@ -2716,31 +2716,31 @@
-
-
+
+
Curve[%1]
-
-
+
+
Surface[%1]
-
-
+
+
Table[%1]
-
-
+
+
Light[%1]
-
+
Polar[%1]
@@ -2816,48 +2816,48 @@
QtConeWaveComponentManager
-
-
+
+
ConeWaveComponent
-
+
Height
-
+
Radius
-
+
waveCount
-
+
waveSpeed
-
+
baseColor
-
+
waveColor
-
+
ringBrightAlpha
-
+
ringDarkAlpha
@@ -2963,28 +2963,28 @@
QtDashedLineComponentManager
-
-
+
+
DashedLineComponent
-
+
Start
-
+
End
-
+
Radius
-
+
Color
@@ -3000,17 +3000,17 @@
QtEntityPropertyManager
-
+
Name
-
+
Visible
-
+
Transform
@@ -3092,13 +3092,13 @@
QtMeshComponetManager
-
-
+
+
MeshComponent
-
+
Mesh
@@ -3147,13 +3147,13 @@
QtPathComponentManager
-
-
+
+
PathComponent
-
+
Path
@@ -3403,97 +3403,72 @@
QtWorkspacePropertyManager
-
+
Name
-
+
Description
-
+
Timestep
-
- SimMatlab
-
-
-
-
- MatlabParam
-
-
-
-
- WavePath
-
-
-
-
- ReportPath
-
-
-
-
- RDPath
-
-
-
-
+
CommondPath
-
+
Count
-
+
Curve[%1]
-
+
Surface[%1]
-
+
Table[%1]
-
+
Light[%1]
-
+
Curves
-
+
Surfaces
-
+
Tables
-
+
Lights
-
+
Polars
diff --git a/src/ui/ModelBrowser/ModelTreeWidget.cpp b/src/ui/ModelBrowser/ModelTreeWidget.cpp
index 46ad3ba8..3582f4ca 100644
--- a/src/ui/ModelBrowser/ModelTreeWidget.cpp
+++ b/src/ui/ModelBrowser/ModelTreeWidget.cpp
@@ -102,6 +102,7 @@ void ModelTreeWidget::contextMenuEvent(QContextMenuEvent* event) {
Entity* entity = value.value();
PopupEntityMenu(event, entity);
} else {
+ return;
QMenu menu(this);
QAction* addEntiy = new QAction(tr("Add boke Entity"), this);