@ -133,7 +133,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slidersLayout - > setAlignment ( TQt : : AlignHCenter ) ;
}
/* cesken: This is inconsistent. Why should vertical and horizontal tq layout differ?
/* cesken: This is inconsistent. Why should vertical and horizontal layout differ?
* Also it eats too much space - especially when you don ' t show sliders at all .
* Even more on the vertical panel applet ( see Bug # 97667 )
if ( _orientation = = Qt : : Horizontal )
@ -213,36 +213,36 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- MUTE LED
if ( showMuteLED ) {
TQBoxLayout * led tq layout;
TQBoxLayout * led layout;
if ( _orientation = = Qt : : Vertical ) {
led tq layout = new TQHBoxLayout ( sliLayout ) ;
led tq layout- > setAlignment ( TQt : : AlignVCenter ) ;
led layout = new TQHBoxLayout ( sliLayout ) ;
led layout- > setAlignment ( TQt : : AlignVCenter ) ;
}
else {
led tq layout = new TQVBoxLayout ( sliLayout ) ;
led tq layout- > setAlignment ( TQt : : AlignHCenter ) ;
led layout = new TQVBoxLayout ( sliLayout ) ;
led layout- > setAlignment ( TQt : : AlignHCenter ) ;
}
if ( m_mixdevice - > hasMute ( ) )
{
led tq layout- > addStretch ( ) ;
led layout- > addStretch ( ) ;
// create mute LED
m_muteLED = new KLedButton ( TQt : : green , KLed : : On , KLed : : Sunken ,
KLed : : Circular , this , " MuteLED " ) ;
m_muteLED - > setFixedSize ( TQSize ( 16 , 16 ) ) ;
m_muteLED - > resize ( TQSize ( 16 , 16 ) ) ;
led tq layout- > addWidget ( m_muteLED ) ;
led layout- > addWidget ( m_muteLED ) ;
TQToolTip : : add ( m_muteLED , i18n ( " Mute " ) ) ;
connect ( m_muteLED , TQT_SIGNAL ( stateChanged ( bool ) ) , this , TQT_SLOT ( toggleMuted ( ) ) ) ;
m_muteLED - > installEventFilter ( this ) ;
led tq layout- > addStretch ( ) ;
led layout- > addStretch ( ) ;
} // has Mute LED
else {
// we don't have a MUTE LED. We create a dummy widget
// !! possibly not neccesary any more (we are layouted)
TQWidget * qw = new TQWidget ( this , " Spacer " ) ;
qw - > setFixedSize ( TQSize ( 16 , 16 ) ) ;
led tq layout- > addWidget ( qw ) ;
led layout- > addWidget ( qw ) ;
qw - > installEventFilter ( this ) ;
} // has no Mute LED
@ -314,7 +314,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slider - > hide ( ) ;
number - > hide ( ) ;
}
slinumLayout - > addWidget ( slider ) ; // add to tq layout
slinumLayout - > addWidget ( slider ) ; // add to layout
m_sliders . append ( slider ) ; // add to list
_slidersChids . append ( chid ) ; // Remember slider-chid association
connect ( slider , TQT_SIGNAL ( valueChanged ( int ) ) , TQT_SLOT ( volumeChange ( int ) ) ) ;
@ -327,27 +327,27 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
sliLayout - > addSpacing ( 5 ) ;
// --- LED LAYOUT TO CENTER ---
TQBoxLayout * rec tq layout;
TQBoxLayout * rec layout;
if ( _orientation = = Qt : : Vertical ) {
rec tq layout = new TQHBoxLayout ( sliLayout ) ;
rec tq layout- > setAlignment ( TQt : : AlignVCenter ) ;
rec layout = new TQHBoxLayout ( sliLayout ) ;
rec layout- > setAlignment ( TQt : : AlignVCenter ) ;
}
else {
rec tq layout = new TQVBoxLayout ( sliLayout ) ;
rec tq layout- > setAlignment ( TQt : : AlignHCenter ) ;
rec layout = new TQVBoxLayout ( sliLayout ) ;
rec layout- > setAlignment ( TQt : : AlignHCenter ) ;
}
if ( m_mixdevice - > isRecordable ( ) ) {
rec tq layout- > addStretch ( ) ;
rec layout- > addStretch ( ) ;
m_recordLED = new KLedButton ( TQt : : red ,
m_mixdevice - > isRecSource ( ) ? KLed : : On : KLed : : Off ,
KLed : : Sunken , KLed : : Circular , this , " RecordLED " ) ;
m_recordLED - > setFixedSize ( TQSize ( 16 , 16 ) ) ;
rec tq layout- > addWidget ( m_recordLED ) ;
rec layout- > addWidget ( m_recordLED ) ;
connect ( m_recordLED , TQT_SIGNAL ( stateChanged ( bool ) ) , this , TQT_SLOT ( setRecsrc ( bool ) ) ) ;
m_recordLED - > installEventFilter ( this ) ;
TQToolTip : : add ( m_recordLED , i18n ( " Record " ) ) ;
rec tq layout- > addStretch ( ) ;
rec layout- > addStretch ( ) ;
}
else
{
@ -355,12 +355,12 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// !! possibly not neccesary any more (we are layouted)
TQWidget * qw = new TQWidget ( this , " Spacer " ) ;
qw - > setFixedSize ( TQSize ( 16 , 16 ) ) ;
rec tq layout- > addWidget ( qw ) ;
rec layout- > addWidget ( qw ) ;
qw - > installEventFilter ( this ) ;
} // has no Record LED
} // showRecordLED
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
@ -438,7 +438,7 @@ MDWSlider::setIcon( int icontype )
kdError ( 67100 ) < < " Pixmap missing. " < < endl ;
}
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
bool
@ -514,7 +514,7 @@ MDWSlider::setStereoLinked(bool value)
if ( slider & & static_cast < TQSlider * > ( slider ) - > tickmarks ( ) )
setTicks ( true ) ;
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
@ -529,7 +529,7 @@ MDWSlider::setLabeled(bool value)
else
m_label - > hide ( ) ;
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
void
@ -558,7 +558,7 @@ MDWSlider::setTicks( bool ticks )
}
}
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
void
@ -579,7 +579,7 @@ MDWSlider::setValueStyle( ValueStyle valueStyle )
}
}
}
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
void
@ -592,7 +592,7 @@ MDWSlider::setIcons(bool value)
else
m_iconLabel - > hide ( ) ;
tq layout( ) - > activate ( ) ;
layout( ) - > activate ( ) ;
}
} // if it has an icon
}
@ -939,7 +939,7 @@ TQSize MDWSlider::sizeHint() const {
return _layout - > sizeHint ( ) ;
}
else {
// tq layout not (yet) created
// layout not (yet) created
return TQWidget : : sizeHint ( ) ;
}
}