summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-05-10 16:58:33 (UTC)
committer mickeyl <mickeyl>2003-05-10 16:58:33 (UTC)
commit2a58ee1a76e1dcfa055293c5e3c24fad31678094 (patch) (unidiff)
tree8b9367ab523f0f5b3adbcd77a9debd80f7054e90
parent7f8b43992dffa298d84a3a293fa0a198e51d6a1c (diff)
downloadopie-2a58ee1a76e1dcfa055293c5e3c24fad31678094.zip
opie-2a58ee1a76e1dcfa055293c5e3c24fad31678094.tar.gz
opie-2a58ee1a76e1dcfa055293c5e3c24fad31678094.tar.bz2
workaround half-visible volume pixmap
Note: For after Opie 1.0 we need TaskBar::height()
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/volume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp
index 906bb77..b129be3 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -706,49 +706,49 @@ void VolumeControl::writeConfigEntry ( const char *entry, int val, eUpdate upd )
706 QCopEnvelope ( "QPE/System", "micChange(bool)" ) << m_mic_muted; 706 QCopEnvelope ( "QPE/System", "micChange(bool)" ) << m_mic_muted;
707 break; 707 break;
708 } 708 }
709 case UPD_Bass: { 709 case UPD_Bass: {
710 QCopEnvelope ( "QPE/System", "bassChange(bool)" ) << true; 710 QCopEnvelope ( "QPE/System", "bassChange(bool)" ) << true;
711 break; 711 break;
712 } 712 }
713 case UPD_Treble: { 713 case UPD_Treble: {
714 QCopEnvelope ( "QPE/System", "trebleChange(bool)" ) << true; 714 QCopEnvelope ( "QPE/System", "trebleChange(bool)" ) << true;
715 break; 715 break;
716 } 716 }
717 717
718 case UPD_None: 718 case UPD_None:
719 break; 719 break;
720 } 720 }
721#endif 721#endif
722} 722}
723 723
724//=========================================================================== 724//===========================================================================
725 725
726VolumeApplet::VolumeApplet( QWidget *parent, const char *name ) 726VolumeApplet::VolumeApplet( QWidget *parent, const char *name )
727 : QWidget( parent, name ) 727 : QWidget( parent, name )
728{ 728{
729 setFixedWidth ( AppLnk::smallIconSize() ); 729 setFixedWidth ( AppLnk::smallIconSize() );
730 setFixedHeight ( AppLnk::smallIconSize() ); 730 setFixedHeight ( AppLnk::smallIconSize()+4 );
731 731
732 m_pixmap = new QPixmap ( Resource::loadPixmap ( "volume" )); 732 m_pixmap = new QPixmap ( Resource::loadPixmap ( "volume" ));
733 m_dialog = new VolumeControl ( this, true, this, "volumecontrol" ); 733 m_dialog = new VolumeControl ( this, true, this, "volumecontrol" );
734 734
735 connect ( qApp, SIGNAL( volumeChanged ( bool )), m_dialog, SLOT( volumeChanged( bool ))); 735 connect ( qApp, SIGNAL( volumeChanged ( bool )), m_dialog, SLOT( volumeChanged( bool )));
736 connect ( qApp, SIGNAL( micChanged ( bool )), m_dialog, SLOT ( micChanged( bool ))); 736 connect ( qApp, SIGNAL( micChanged ( bool )), m_dialog, SLOT ( micChanged( bool )));
737} 737}
738 738
739VolumeApplet::~VolumeApplet() 739VolumeApplet::~VolumeApplet()
740{ 740{
741 delete m_pixmap; 741 delete m_pixmap;
742} 742}
743 743
744 744
745void VolumeApplet::mousePressEvent ( QMouseEvent * ) 745void VolumeApplet::mousePressEvent ( QMouseEvent * )
746{ 746{
747 if ( m_dialog-> isVisible ( )) 747 if ( m_dialog-> isVisible ( ))
748 m_dialog-> hide ( ); 748 m_dialog-> hide ( );
749 else 749 else
750 m_dialog-> show ( true ); 750 m_dialog-> show ( true );
751} 751}
752 752
753void VolumeApplet::redraw ( bool all ) 753void VolumeApplet::redraw ( bool all )
754{ 754{