camerauis/cameraxui/cxui/src/cxuisettingslider.cpp
changeset 48 42ba2d16bf40
parent 21 fa6d9f75d6a6
equal deleted inserted replaced
37:64817133cd1d 48:42ba2d16bf40
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    93     CX_DEBUG_ENTER_FUNCTION();
    93     CX_DEBUG_ENTER_FUNCTION();
    94 
    94 
    95     mSettingId = id;
    95     mSettingId = id;
    96 
    96 
    97     // once the settingid is set, we can get the current value for the slider from the engine
    97     // once the settingid is set, we can get the current value for the slider from the engine
    98     qreal value = 0;
    98     qreal value = mSettings->get<qreal>(mSettingId, 0);
    99 
       
   100     int err = mSettings->get(mSettingId, value);
       
   101     CX_DEBUG((("err: %d value: %d"),err,value));
       
   102 
    99 
   103     // engine value has to be scaled when set to slider
   100     // engine value has to be scaled when set to slider
   104     setValue(value * mSliderScaleValue);
   101     setValue(value * mSliderScaleValue);
   105     mOriginalValue = value;
   102     mOriginalValue = value;
   106 
   103