修改属性面板默认不折叠

This commit is contained in:
2026-04-11 10:40:15 +08:00
parent 0710090b4d
commit a78b290920
2 changed files with 89 additions and 9 deletions

View File

@@ -123,8 +123,6 @@ EntityPropertySection::EntityPropertySection(QWidget* parent)
lay->addWidget(m_introContent);
lay->addStretch(1);
m_introContent->setVisible(false);
m_introSaveTimer = new QTimer(this);
m_introSaveTimer->setSingleShot(true);
connect(m_introSaveTimer, &QTimer::timeout, this, [this]() {
@@ -136,6 +134,7 @@ EntityPropertySection::EntityPropertySection(QWidget* parent)
connect(m_introToggle, &QToolButton::clicked, this, [this]() {
setIntroSectionExpanded(!m_introContent->isVisible());
});
setIntroSectionExpanded(true);
connect(m_name, &QLineEdit::editingFinished, this, [this]() {
if (m_name) {
@@ -231,7 +230,7 @@ void EntityPropertySection::clearDisconnected() {
m_introVideo->blockSignals(false);
}
if (m_introImages) m_introImages->clear();
setIntroSectionExpanded(false);
setIntroSectionExpanded(true);
m_introBulkUpdate = false;
}
@@ -308,7 +307,6 @@ void EntityPropertySection::applyState(const EntityPropertyUiState& s) {
}
}
}
setIntroSectionExpanded(false);
m_introBulkUpdate = false;
}