Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/qdoc3/config.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4444*/
    4545
    46 #include <QtCore>
     46#include <QDir>
     47#include <QVariant>
     48#include <QFile>
     49#include <QTemporaryFile>
     50#include <QTextStream>
    4751
    4852#include "archiveextractor.h"
     
    525529    QStringList::ConstIterator e = fileExtensions.begin();
    526530    while (e != fileExtensions.end()) {
    527         QString filePath = findFile(location, files, dirs, fileBase + "." + *e,
    528                                      userFriendlyFilePath);
     531        QString filePath = findFile(location,
     532                                    files,
     533                                    dirs,
     534                                    fileBase + "." + *e,
     535                                    userFriendlyFilePath);
    529536        if (!filePath.isEmpty())
    530537            return filePath;
     
    672679    }
    673680
    674     QString text = fin.readAll();
     681    QTextStream stream(&fin);
     682    stream.setCodec("UTF-8");
     683    QString text = stream.readAll();
    675684    text += QLatin1String("\n\n");
    676685    text += QChar('\0');
Note: See TracChangeset for help on using the changeset viewer.