Add annotation property panel

This commit is contained in:
2026-06-30 18:20:30 +08:00
parent 42531a845b
commit a3ebad943b
5 changed files with 197 additions and 3 deletions
+16
View File
@@ -153,6 +153,22 @@ class RightToolsPanel(QWidget):
self.sections[section_id] = section
self.sections_layout.addWidget(section)
def add_widget_section(self, title: str, widget: QWidget, section_id: str) -> None:
section = QFrame()
section.setObjectName("toolSection")
layout = QVBoxLayout(section)
layout.setContentsMargins(8, 8, 8, 8)
layout.setSpacing(6)
label = QLabel(title)
label.setObjectName("toolSectionLabel")
layout.addWidget(label)
layout.addWidget(widget)
self.sections[section_id] = section
self.sections_layout.addWidget(section)
def finish(self) -> None:
self.sections_layout.addStretch(1)