homescreenapp/hsutils/src/hswidgetpositioningonwidgetmove.cpp
changeset 81 7dd137878ff8
parent 69 87476091b3f5
child 90 3ac3aaebaee5
equal deleted inserted replaced
76:3916af29624a 81:7dd137878ff8
    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.