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:
Tobias Doerffel
2008-03-30 20:18:58 +00:00
parent 971b1a64eb
commit 5bfbd5d4f0
2 changed files with 14 additions and 1 deletions

View File

@@ -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() )