on model-change, ensure QPushButton's state is correct
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@815 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -63,6 +63,17 @@ automatableButton::~automatableButton()
|
||||
|
||||
|
||||
|
||||
void automatableButton::modelChanged( void )
|
||||
{
|
||||
if( QPushButton::isChecked() != model()->value() )
|
||||
{
|
||||
QPushButton::setChecked( model()->value() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void automatableButton::update( void )
|
||||
{
|
||||
if( QPushButton::isChecked() != model()->value() )
|
||||
|
||||
Reference in New Issue
Block a user