homescreenapp/hsutils/src/hssnapline.cpp
changeset 85 35368b604b28
parent 77 4b195f3bea29
equal deleted inserted replaced
77:4b195f3bea29 85:35368b604b28
    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.