Ignore:
Timestamp:
Nov 7, 2014, 5:23:02 PM (11 years ago)
Author:
Dmitry A. Kuminov
Message:

vendor: Import qt-everywhere-opensource-src-4.8.6 from Digia (excluding doc/html and doc/qch dirs generated from doc/src, and imports and templates dirs which are emtpy).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vendor/nokia/qt/current/tools/qml/qdeclarativetester.cpp

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the tools applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
     
    4949#include <QCryptographicHash>
    5050#include <private/qabstractanimation_p.h>
     51
     52
    5153#include <private/qdeclarativeitem_p.h>
     54
    5255
    5356QT_BEGIN_NAMESPACE
     
    203206    QFileInfo filenameInfo(filename);
    204207    QDir saveDir = filenameInfo.absoluteDir();
    205     saveDir.mkpath(".");
     208    saveDir.mkpath();
    206209
    207210    QFile file(filename);
     
    222225            ts << "        hash: \"" << fe.hash.toHex() << "\"\n";
    223226        } else if (!fe.image.isNull()) {
    224             QString filename = filenameInfo.baseName() + "." + QString::number(imgCount) + ".png";
    225             fe.image.save(m_script + "." + QString::number(imgCount) + ".png");
     227            QString filename = filenameInfo.baseName() + ;
     228            fe.image.save(m_script + );
    226229            imgCount++;
    227230            ts << "        image: \"" << filename << "\"\n";
     
    267270void QDeclarativeTester::updateCurrentTime(int msec)
    268271{
     272
    269273    QDeclarativeItemPrivate::setConsistentTime(msec);
     274
    270275    if (!testscript && msec > 16 && options & QDeclarativeViewer::Snapshot)
    271276        return;
     
    371376                }
    372377                if (goodImage != img) {
    373                     QString reject(frame->image().toLocalFile() + ".reject.png");
     378                    QString reject(frame->image().toLocalFile() + );
    374379                    qWarning() << "QDeclarativeTester(" << m_script << "): Image mismatch.  Reject saved to:"
    375380                               << reject;
     
    389394                            }
    390395                        }
    391                         QString diff(frame->image().toLocalFile() + ".diff.png");
     396                        QString diff(frame->image().toLocalFile() + );
    392397                        diffimg.save(diff);
    393398                        qWarning().nospace() << "                    Diff (" << diffCount << " pixels differed) saved to: " << diff;
Note: See TracChangeset for help on using the changeset viewer.