sectionNext() );
CONNECT( menuButton, clicked(), THEMIM->getIM(),
sectionMenu() );
- connect( THEMIM->getIM(), SIGNAL( titleChanged( bool ) ),
- this, SIGNAL( sizeChanged() ) );
return discFrame;
}
telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 );
CONNECT( THEMIM->getIM(), teletextPossible( bool ),
telexFrame, setVisible( bool ) );
- connect( THEMIM->getIM(), SIGNAL( teletextPossible( bool ) ),
- this, SIGNAL( sizeChanged() ) );
/* On/Off button */
QToolButton *telexOn = new QToolButton;
void inputPlaying( bool ); /// This might be usefull in the IM ?
void inputIsRecordable( bool ); /// same ?
void inputIsTrickPlayable( bool ); /// same ?
- void sizeChanged();
};
/* Advanced Button Bar */
protected:
friend class MainInterface;
- bool b_advancedVisible;
+ bool b_advancedVisible;
protected slots:
void toggleAdvanced();
delete inputC;
controls = new ControlsWidget( p_intf, false, this ); /* FIXME */
- CONNECT( controls, advancedControlsToggled( bool ),
- this, adaptGeometry() );
- CONNECT( controls, sizeChanged(),
- this, adaptGeometry() );
-
inputC = new InputControlsWidget( p_intf, this );
mainLayout->insertWidget( 2, inputC );
/* Create the CONTROLS Widget */
controls = new ControlsWidget( p_intf,
settings->value( "adv-controls", false ).toBool(), this );
- CONNECT( controls, advancedControlsToggled( bool ),
- this, adaptGeometry() );
- CONNECT( controls, sizeChanged(),
- this, adaptGeometry() );
inputC = new InputControlsWidget( p_intf, this );
mainLayout->insertWidget( 2, inputC );
* Handling of sizing of the components
**********************************************************************/
-/* This function is called:
- - Advanced buttons toggled
- - Toolbar geom changed
- */
-void MainInterface::adaptGeometry()
-{
- resize( sizeHint() );
-
-#ifdef DEBUG_INTF
- debug();
-#endif
-}
-
void MainInterface::debug()
{
#ifdef DEBUG_INTF