
Originally Posted by
L.Marvell
So isn't it has to be [...]
Not with current toggleManualTab() implementation, since it doesn't take any arguments.
With:
connect( ui.rbManualMode, SIGNAL( toggled( bool ) ),
this, SLOT( toggleManualTab( bool ) ) );
connect( ui.rbManualMode, SIGNAL( toggled( bool ) ),
this, SLOT( toggleManualTab( bool ) ) );
To copy to clipboard, switch view to plain text mode
that slot should look like this:
void ConfigurationForm::toggleManualTab( bool bEnableTab )
{
ui.twConfig->setTabEnabled( 1, bEnableTab );
}
void ConfigurationForm::toggleManualTab( bool bEnableTab )
{
ui.twConfig->setTabEnabled( 1, bEnableTab );
}
To copy to clipboard, switch view to plain text mode
@bpetty:
If you have similar slots for other tabs, consider using QSignalMapper.
Bookmarks