summaryrefslogtreecommitdiff
Unidiff
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 e066a83..ed07ec4 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -234,49 +234,49 @@ static const char * alarm_xpm[] = {
234" 42|}}3'4#[;$)$44 ", 234" 42|}}3'4#[;$)$44 ",
235"444{]]2^~~:!!#.@##/ ", 235"444{]]2^~~:!!#.@##/ ",
236"4444-%*:==!!=...../ ", 236"4444-%*:==!!=...../ ",
237" /:[.. ", 237" /:[.. ",
238" /@. ", 238" /@. ",
239" "}; 239" "};
240 240
241VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *parent, const char *name ) 241VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *parent, const char *name )
242 : QFrame ( parent, name, WStyle_StaysOnTop | WType_Popup ) 242 : QFrame ( parent, name, WStyle_StaysOnTop | WType_Popup )
243{ 243{
244 m_icon = icon; 244 m_icon = icon;
245 245
246 bool has_wav_alarm = true; 246 bool has_wav_alarm = true;
247 bool has_bass = true; 247 bool has_bass = true;
248 bool has_treble = true; 248 bool has_treble = true;
249 249
250 switch ( ODevice::inst ( )-> model ( )) { // we need to add other devices eventually 250 switch ( ODevice::inst ( )-> model ( )) { // we need to add other devices eventually
251 case Model_Zaurus_SL5000: 251 case Model_Zaurus_SL5000:
252 has_wav_alarm = false; //poor guys probably feeling left out... 252 has_wav_alarm = false; //poor guys probably feeling left out...
253 break; 253 break;
254 default: 254 default:
255 break; 255 break;
256 } 256 }
257 257
258 if ( !ODevice::series == Model_iPAQ ) { 258 if ( !ODevice::inst ( )-> series ( ) == Model_iPAQ ) {
259 has_bass = false; 259 has_bass = false;
260 has_treble = false; 260 has_treble = false;
261 } 261 }
262 262
263 263
264 setFrameStyle ( QFrame::PopupPanel | QFrame::Raised ); 264 setFrameStyle ( QFrame::PopupPanel | QFrame::Raised );
265 265
266 QGridLayout *grid = new QGridLayout ( this, 1, 1, 6, 4 ); 266 QGridLayout *grid = new QGridLayout ( this, 1, 1, 6, 4 );
267 grid-> setSpacing ( 4 ); 267 grid-> setSpacing ( 4 );
268 grid-> setMargin ( 6 ); 268 grid-> setMargin ( 6 );
269 269
270 QVBoxLayout *vbox; 270 QVBoxLayout *vbox;
271 QLabel *l; 271 QLabel *l;
272 272
273 vbox = new QVBoxLayout ( ); 273 vbox = new QVBoxLayout ( );
274 vbox-> setSpacing ( 4 ); 274 vbox-> setSpacing ( 4 );
275 grid-> addLayout ( vbox, 1, 0 ); 275 grid-> addLayout ( vbox, 1, 0 );
276 276
277 upButton = new QPushButton ( this ); 277 upButton = new QPushButton ( this );
278 upButton-> setSizePolicy ( QSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding )); 278 upButton-> setSizePolicy ( QSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding ));
279 upButton-> setPixmap ( Resource::loadPixmap ( "up" )); 279 upButton-> setPixmap ( Resource::loadPixmap ( "up" ));
280 upButton-> setFocusPolicy ( QWidget::NoFocus ); 280 upButton-> setFocusPolicy ( QWidget::NoFocus );
281 281
282 vbox-> addWidget ( upButton ); 282 vbox-> addWidget ( upButton );