clear + autodelete

This commit is contained in:
Uwe Rathmann 2020-03-10 10:27:28 +01:00
parent f303aeb295
commit 3fd4714bd9
2 changed files with 3 additions and 3 deletions

View File

@ -269,13 +269,13 @@ void QskTabBar::removeTab( int index )
}
}
void QskTabBar::clear()
void QskTabBar::clear( bool autoDelete )
{
if ( count() == 0 )
return;
const int idx = currentIndex();
m_data->buttonBox->clear();
m_data->buttonBox->clear( autoDelete );
Q_EMIT countChanged( count() );

View File

@ -53,7 +53,7 @@ class QSK_EXPORT QskTabBar : public QskBox
Q_INVOKABLE int insertTab( int index, QskTabButton* );
Q_INVOKABLE void removeTab( int index );
Q_INVOKABLE void clear();
Q_INVOKABLE void clear( bool autoDelete = false );
bool isTabEnabled( int index ) const;
void setTabEnabled( int index, bool );