From c6daaf1849427191cb449e742681629bdaee4570 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 28 Sep 2004 05:54:30 +0000 Subject: treble and bass sliders not being hidden on system that dont have those devices --- (limited to 'core') diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index 276f47f..6a14d07 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp @@ -249,12 +249,11 @@ VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *pa break; } - if ( !ODevice::inst ( )-> series ( ) == Model_iPAQ ) { + if ( !ODevice::inst()->modelString().contains( "Model_iPAQ" )) { has_bass = false; has_treble = false; } - setFrameStyle ( QFrame::PopupPanel | QFrame::Raised ); QGridLayout *grid = new QGridLayout ( this, 1, 1, 6, 4 ); -- cgit v0.9.0.2