-rw-r--r-- | core/applets/volumeapplet/volume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index aec346b..06eec58 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp | |||
@@ -560,49 +560,49 @@ void VolumeControl::writeConfigEntry ( const char *entry, int val, eUpdate upd ) | |||
560 | switch ( upd ) { | 560 | switch ( upd ) { |
561 | case UPD_Vol: { | 561 | case UPD_Vol: { |
562 | QCopEnvelope ( "QPE/System", "volumeChange(bool)" ) << m_vol_muted; | 562 | QCopEnvelope ( "QPE/System", "volumeChange(bool)" ) << m_vol_muted; |
563 | break; | 563 | break; |
564 | } | 564 | } |
565 | case UPD_Mic: { | 565 | case UPD_Mic: { |
566 | QCopEnvelope ( "QPE/System", "micChange(bool)" ) << m_mic_muted; | 566 | QCopEnvelope ( "QPE/System", "micChange(bool)" ) << m_mic_muted; |
567 | break; | 567 | break; |
568 | } | 568 | } |
569 | case UPD_None: | 569 | case UPD_None: |
570 | break; | 570 | break; |
571 | } | 571 | } |
572 | #endif | 572 | #endif |
573 | } | 573 | } |
574 | 574 | ||
575 | //=========================================================================== | 575 | //=========================================================================== |
576 | 576 | ||
577 | VolumeApplet::VolumeApplet( QWidget *parent, const char *name ) | 577 | VolumeApplet::VolumeApplet( QWidget *parent, const char *name ) |
578 | : QWidget( parent, name ) | 578 | : QWidget( parent, name ) |
579 | { | 579 | { |
580 | setFixedHeight ( 18 ); | 580 | setFixedHeight ( 18 ); |
581 | setFixedWidth ( 14 ); | 581 | setFixedWidth ( 14 ); |
582 | 582 | ||
583 | m_pixmap = new QPixmap ( Resource::loadPixmap ( "volume" )); | 583 | m_pixmap = new QPixmap ( Resource::loadPixmap ( "volume" )); |
584 | m_dialog = new VolumeControl ( this ); | 584 | m_dialog = new VolumeControl ( this, true, this, "volumecontrol" ); |
585 | 585 | ||
586 | connect ( qApp, SIGNAL( volumeChanged ( bool )), m_dialog, SLOT( volumeChanged( bool ))); | 586 | connect ( qApp, SIGNAL( volumeChanged ( bool )), m_dialog, SLOT( volumeChanged( bool ))); |
587 | connect ( qApp, SIGNAL( micChanged ( bool )), m_dialog, SLOT ( micChanged( bool ))); | 587 | connect ( qApp, SIGNAL( micChanged ( bool )), m_dialog, SLOT ( micChanged( bool ))); |
588 | } | 588 | } |
589 | 589 | ||
590 | VolumeApplet::~VolumeApplet() | 590 | VolumeApplet::~VolumeApplet() |
591 | { | 591 | { |
592 | delete m_pixmap; | 592 | delete m_pixmap; |
593 | } | 593 | } |
594 | 594 | ||
595 | 595 | ||
596 | void VolumeApplet::mousePressEvent ( QMouseEvent * ) | 596 | void VolumeApplet::mousePressEvent ( QMouseEvent * ) |
597 | { | 597 | { |
598 | if ( m_dialog-> isVisible ( )) | 598 | if ( m_dialog-> isVisible ( )) |
599 | m_dialog-> hide ( ); | 599 | m_dialog-> hide ( ); |
600 | else | 600 | else |
601 | m_dialog-> show ( true ); | 601 | m_dialog-> show ( true ); |
602 | } | 602 | } |
603 | 603 | ||
604 | void VolumeApplet::redraw ( bool all ) | 604 | void VolumeApplet::redraw ( bool all ) |
605 | { | 605 | { |
606 | if ( all ) | 606 | if ( all ) |
607 | repaint ( true ); | 607 | repaint ( true ); |
608 | else | 608 | else |