author | mickeyl <mickeyl> | 2003-05-10 16:58:33 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-10 16:58:33 (UTC) |
commit | 2a58ee1a76e1dcfa055293c5e3c24fad31678094 (patch) (side-by-side diff) | |
tree | 8b9367ab523f0f5b3adbcd77a9debd80f7054e90 /core | |
parent | 7f8b43992dffa298d84a3a293fa0a198e51d6a1c (diff) | |
download | opie-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()
-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 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 ) QCopEnvelope ( "QPE/System", "micChange(bool)" ) << m_mic_muted; break; } case UPD_Bass: { QCopEnvelope ( "QPE/System", "bassChange(bool)" ) << true; break; } case UPD_Treble: { QCopEnvelope ( "QPE/System", "trebleChange(bool)" ) << true; break; } case UPD_None: break; } #endif } //=========================================================================== VolumeApplet::VolumeApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { setFixedWidth ( AppLnk::smallIconSize() ); - setFixedHeight ( AppLnk::smallIconSize() ); + setFixedHeight ( AppLnk::smallIconSize()+4 ); m_pixmap = new QPixmap ( Resource::loadPixmap ( "volume" )); m_dialog = new VolumeControl ( this, true, this, "volumecontrol" ); connect ( qApp, SIGNAL( volumeChanged ( bool )), m_dialog, SLOT( volumeChanged( bool ))); connect ( qApp, SIGNAL( micChanged ( bool )), m_dialog, SLOT ( micChanged( bool ))); } VolumeApplet::~VolumeApplet() { delete m_pixmap; } void VolumeApplet::mousePressEvent ( QMouseEvent * ) { if ( m_dialog-> isVisible ( )) m_dialog-> hide ( ); else m_dialog-> show ( true ); } void VolumeApplet::redraw ( bool all ) { |