|
Lines 211-216
PlayPauseAction::PlayPauseAction( TDEActionCollection *ac )
Link Here
|
| 211 |
: TDEToggleAction( i18n( "Play/Pause" ), 0, ac, "play_pause" ) |
211 |
: TDEToggleAction( i18n( "Play/Pause" ), 0, ac, "play_pause" ) |
| 212 |
, EngineObserver( EngineController::instance() ) |
212 |
, EngineObserver( EngineController::instance() ) |
| 213 |
{ |
213 |
{ |
|
|
214 |
// We have our own thread manager |
| 215 |
disableThreadPostedEvents(true); |
| 216 |
|
| 214 |
engineStateChanged( EngineController::engine()->state() ); |
217 |
engineStateChanged( EngineController::engine()->state() ); |
| 215 |
|
218 |
|
| 216 |
connect( this, TQT_SIGNAL(activated()), EngineController::instance(), TQT_SLOT(playPause()) ); |
219 |
connect( this, TQT_SIGNAL(activated()), EngineController::instance(), TQT_SLOT(playPause()) ); |
|
Lines 422-428
VolumeAction::VolumeAction( TDEActionCollection *ac )
Link Here
|
| 422 |
: TDEAction( i18n( "Volume" ), 0, ac, "toolbar_volume" ) |
425 |
: TDEAction( i18n( "Volume" ), 0, ac, "toolbar_volume" ) |
| 423 |
, EngineObserver( EngineController::instance() ) |
426 |
, EngineObserver( EngineController::instance() ) |
| 424 |
, m_slider( 0 ) //is TQGuardedPtr |
427 |
, m_slider( 0 ) //is TQGuardedPtr |
| 425 |
{} |
428 |
{ |
|
|
429 |
// We have our own thread manager |
| 430 |
disableThreadPostedEvents(true); |
| 431 |
} |
| 426 |
|
432 |
|
| 427 |
int |
433 |
int |
| 428 |
VolumeAction::plug( TQWidget *w, int index ) |
434 |
VolumeAction::plug( TQWidget *w, int index ) |