-rw-r--r-- | core/applets/volumeapplet/volume.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index eedc749..aec346b 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp @@ -44,8 +44,10 @@ #include <opie/odevice.h> #include "oledbox.h" +using namespace Opie; + #define RATE_TIMER_INTERVAL 100 // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. @@ -185,11 +187,13 @@ VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *pa bool has_wav_alarm = true; switch ( ODevice::inst ( )-> model ( )) { // we need to add other devices eventually - case OMODEL_Zaurus_SL5000: + case Model_Zaurus_SL5000: has_wav_alarm = false; //poor guys probably feeling left out... break; + default: + break; } setFrameStyle ( QFrame::PopupPanel | QFrame::Raised ); @@ -456,9 +460,9 @@ void VolumeControl::readConfig ( bool force ) alarmBox-> setChecked ( m_snd_alarm ); } -void VolumeControl::volumeChanged ( bool nowMuted ) +void VolumeControl::volumeChanged ( bool /*nowMuted*/ ) { int prevVol = m_vol_percent; bool prevMute = m_vol_muted; |