homescreenapp/hsutils/src/hspropertyanimationwrapper.cpp
changeset 69 87476091b3f5
parent 63 52b0f64eeb51
child 71 1db7cc813a4e
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    65 
    65 
    66 bool HsPropertyAnimationWrapper::isRunning()
    66 bool HsPropertyAnimationWrapper::isRunning()
    67 {
    67 {
    68     return (mImpl->mPropertyAnimation->state() == QAbstractAnimation::Running);
    68     return (mImpl->mPropertyAnimation->state() == QAbstractAnimation::Running);
    69 }
    69 }
       
    70 
    70 void HsPropertyAnimationWrapper::setEndValue(const QVariant &value)
    71 void HsPropertyAnimationWrapper::setEndValue(const QVariant &value)
    71 {
    72 {
    72     mImpl->mPropertyAnimation->setEndValue(value);
    73     mImpl->mPropertyAnimation->setEndValue(value);
    73 }
    74 }
       
    75 
    74 void HsPropertyAnimationWrapper::setDuration(int msecs)
    76 void HsPropertyAnimationWrapper::setDuration(int msecs)
    75 {
    77 {
    76     mImpl->mPropertyAnimation->setDuration(msecs);
    78     mImpl->mPropertyAnimation->setDuration(msecs);
       
    79 }
       
    80 
       
    81 void HsPropertyAnimationWrapper::setForward()
       
    82 {
       
    83     mImpl->mPropertyAnimation->setDirection(QAbstractAnimation::Forward);
       
    84 }
       
    85 
       
    86 void HsPropertyAnimationWrapper::setBackward()
       
    87 {
       
    88     mImpl->mPropertyAnimation->setDirection(QAbstractAnimation::Backward);
       
    89 }
       
    90 
       
    91 bool HsPropertyAnimationWrapper::isForward() const
       
    92 {
       
    93     return (mImpl->mPropertyAnimation->direction() == QAbstractAnimation::Forward);
    77 }
    94 }
    78 /*!
    95 /*!
    79 
    96 
    80 */
    97 */
    81 void HsPropertyAnimationWrapper::start()
    98 void HsPropertyAnimationWrapper::start()
    87 */
   104 */
    88 void HsPropertyAnimationWrapper::stop()
   105 void HsPropertyAnimationWrapper::stop()
    89 {
   106 {
    90     mImpl->mPropertyAnimation->stop();
   107     mImpl->mPropertyAnimation->stop();
    91 }
   108 }
       
   109