Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/corelib/animation/qpropertyanimation.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    257257
    258258    if (!d->target && oldState == Stopped) {
    259         qWarning("QPropertyAnimation::updateState: Changing state of an animation without target");
     259        qWarning("QPropertyAnimation::updateState (%s): Changing state of an animation without target",
     260                 d->propertyName.constData());
    260261        return;
    261262    }
     
    280281                d->setDefaultStartEndValue(d->targetValue->property(d->propertyName.constData()));
    281282                //let's check if we have a start value and an end value
    282                 if (!startValue().isValid() && (d->direction == Backward || !d->defaultStartEndValue.isValid()))
    283                     qWarning("QPropertyAnimation::updateState: starting an animation without start value");
    284                 if (!endValue().isValid() && (d->direction == Forward || !d->defaultStartEndValue.isValid()))
    285                     qWarning("QPropertyAnimation::updateState: starting an animation without end value");
     283                if (!startValue().isValid() && (d->direction == Backward || !d->defaultStartEndValue.isValid())) {
     284                    qWarning("QPropertyAnimation::updateState (%s, %s, %s): starting an animation without start value",
     285                             d->propertyName.constData(), d->target.data()->metaObject()->className(),
     286                             qPrintable(d->target.data()->objectName()));
     287                }
     288                if (!endValue().isValid() && (d->direction == Forward || !d->defaultStartEndValue.isValid())) {
     289                    qWarning("QPropertyAnimation::updateState (%s, %s, %s): starting an animation without end value",
     290                             d->propertyName.constData(), d->target.data()->metaObject()->className(),
     291                             qPrintable(d->target.data()->objectName()));
     292                }
    286293            }
    287294        } else if (hash.value(key) == this) {
Note: See TracChangeset for help on using the changeset viewer.