clear + autodelete
This commit is contained in:
parent
f303aeb295
commit
3fd4714bd9
@ -269,13 +269,13 @@ void QskTabBar::removeTab( int index )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskTabBar::clear()
|
void QskTabBar::clear( bool autoDelete )
|
||||||
{
|
{
|
||||||
if ( count() == 0 )
|
if ( count() == 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const int idx = currentIndex();
|
const int idx = currentIndex();
|
||||||
m_data->buttonBox->clear();
|
m_data->buttonBox->clear( autoDelete );
|
||||||
|
|
||||||
Q_EMIT countChanged( count() );
|
Q_EMIT countChanged( count() );
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class QSK_EXPORT QskTabBar : public QskBox
|
|||||||
Q_INVOKABLE int insertTab( int index, QskTabButton* );
|
Q_INVOKABLE int insertTab( int index, QskTabButton* );
|
||||||
|
|
||||||
Q_INVOKABLE void removeTab( int index );
|
Q_INVOKABLE void removeTab( int index );
|
||||||
Q_INVOKABLE void clear();
|
Q_INVOKABLE void clear( bool autoDelete = false );
|
||||||
|
|
||||||
bool isTabEnabled( int index ) const;
|
bool isTabEnabled( int index ) const;
|
||||||
void setTabEnabled( int index, bool );
|
void setTabEnabled( int index, bool );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user