Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus
This commit is contained in:
commit
1407f26531
|
|
@ -112,7 +112,10 @@ int CustomTabWidget::insertTab(int index, QWidget *page, const QIcon &icon, cons
|
|||
void CustomTabWidget::removeTab(int index)
|
||||
{
|
||||
m_pTabBar->removeTab(index);
|
||||
m_pStackedWidget->removeWidget(m_pStackedWidget->widget(index)); //widget is not deleted but simply removed from the stacked layout, causing it to be hidden.
|
||||
|
||||
QWidget* pWgt = m_pStackedWidget->widget(index);
|
||||
m_pStackedWidget->removeWidget(pWgt); //widget is not deleted but simply removed from the stacked layout, causing it to be hidden.
|
||||
pWgt->deleteLater();
|
||||
if (m_pTabBar->count() == 0)
|
||||
{
|
||||
emit tabIsEmpty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user