修改属性面板默认不折叠
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user