homescreenapp/hsutils/src/hssnapline.cpp
changeset 81 7dd137878ff8
parent 69 87476091b3f5
equal deleted inserted replaced
76:3916af29624a 81:7dd137878ff8
    59 */
    59 */
    60 void HsSnapLine::setConfiguration(const QVariantHash &configuration)
    60 void HsSnapLine::setConfiguration(const QVariantHash &configuration)
    61 {
    61 {
    62     bool canConvert = false;
    62     bool canConvert = false;
    63     //The following values should be in int, so the status received in canConvert is ignored
    63     //The following values should be in int, so the status received in canConvert is ignored
    64     mFadeInAnimationDuration = configuration[SNAPLINEFADEINDURATION].toInt(&canConvert);
    64     mFadeInAnimationDuration = configuration[Hs::snapLineFadeinDuration].toInt(&canConvert);
    65     mFadeOutAnimationDuration = configuration[SNAPLINEFADEOUTDURATION].toInt(&canConvert);
    65     mFadeOutAnimationDuration = configuration[Hs::snapLineFadeoutDuration].toInt(&canConvert);
    66 }
    66 }
    67 
    67 
    68 /*!
    68 /*!
    69     Show the snap line. fade-in animation is started on the line if the line is positioned at a different place.
    69     Show the snap line. fade-in animation is started on the line if the line is positioned at a different place.
    70     Before starting the fade-in animation, the fade-out animation is stoped if it is running.
    70     Before starting the fade-in animation, the fade-out animation is stoped if it is running.