fix: example sidebar not show
setSidebarWidget will show sidebar widget
This commit is contained in:
parent
3635a3ba77
commit
93d4407f4c
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue