fix: example sidebar not show

setSidebarWidget will show sidebar widget
This commit is contained in:
ck 2023-09-06 17:17:30 +08:00 committed by deepin-ci-robot
parent 3635a3ba77
commit 93d4407f4c
2 changed files with 3 additions and 2 deletions

View File

@ -227,8 +227,9 @@ void DMainWindow::setSidebarWidget(QWidget *widget)
tb->setVisible(d->sidebarHelper->sectionVisible());
d->updateTitleShadowGeometry();
});
d->tb = tb;
d->sidebarHelper->setVisible(false);
d->sidebarHelper->setVisible(true);
}
}

View File

@ -94,7 +94,7 @@ Q_SIGNALS:
void widthChanged(int width);
private:
bool m_visible = true;
bool m_visible = false;
bool m_expanded = true;
int m_width = -1;
QColor m_backgroundColor;