homescreenapp/hsutils/src/hswidgetpositioningonwidgetmove.cpp
changeset 85 35368b604b28
parent 77 4b195f3bea29
child 96 458d8c8d9580
equal deleted inserted replaced
77:4b195f3bea29 85:35368b604b28
    75     Configures the snap-to-lines algorithm.
    75     Configures the snap-to-lines algorithm.
    76 */
    76 */
    77 void HsSnapToLines::setConfiguration(const QVariantHash &configuration)
    77 void HsSnapToLines::setConfiguration(const QVariantHash &configuration)
    78 {
    78 {
    79     bool canConvert = false;
    79     bool canConvert = false;
    80     mSnapEnabled = configuration[SNAPENABLED].toBool();
    80     mSnapEnabled = configuration[Hs::snapEnabled].toBool();
    81     //The following values should be in qreal, so the status received in canConvert is ignored
    81     //The following values should be in qreal, so the status received in canConvert is ignored
    82     mSnapForce = configuration[SNAPFORCE].toDouble(&canConvert);
    82     mSnapForce = configuration[Hs::snapForce].toDouble(&canConvert);
    83     mSnapGap = configuration[SNAPGAP].toDouble(&canConvert);
    83     mSnapGap = configuration[Hs::snapGap].toDouble(&canConvert);
    84 }
    84 }
    85 
    85 
    86 /*!
    86 /*!
    87     Set the dimensions of container rect, active rect and position of Inactive Rects
    87     Set the dimensions of container rect, active rect and position of Inactive Rects
    88     on the page.
    88     on the page.