Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/tools/uic3/ui3reader.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the tools applications of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    126126    if (!encode) {
    127127        s = str;
    128         s.replace(QLatin1String("\\"), QLatin1String("\\\\"));
    129         s.replace(QLatin1String("\""), QLatin1String("\\\""));
    130         s.replace(QLatin1String("\r"), QLatin1String(""));
    131         s.replace(QLatin1String("\n"), QLatin1String("\\n\"\n\""));
     128        s.replace(QLatin1Char('\\'), QLatin1String("\\\\"));
     129        s.replace(QLatin1Char('\"'), QLatin1String("\\\""));
     130        s.remove(QLatin1Char('\r'));
     131        s.replace(QLatin1Char('\n'), QLatin1String("\\n\"\n\""));
    132132    } else {
    133133        QByteArray utf8 = str.utf8();
     
    137137    }
    138138
    139     return QLatin1String("\"") + s + QLatin1String("\"");
     139    return QLatin1Char('\"') + s + QLatin1Char('\"');
    140140}
    141141
     
    159159
    160160    if (comment.isEmpty()) {
    161         return t + QLatin1String("(") + fixString(sourceText, encode) + QLatin1String(")");
     161        return t + QLatin1Char('(') + fixString(sourceText, encode) + QLatin1Char(')');
    162162    } else {
    163         return t + QLatin1String("(")
     163        return t + QLatin1Char('(')
    164164            + fixString(sourceText, encode)
    165165            + QLatin1String(", ")
    166             + fixString(comment, encode) + QLatin1String(")");
     166            + fixString(comment, encode) + QLatin1Char(')');
    167167    }
    168168}
     
    481481            if (!pixmapLoaderFunction.isEmpty()) {
    482482                pixmap.prepend(pixmapLoaderFunction
    483                     + QLatin1String("(")
     483                    + QLatin1Char('(')
    484484                    + QLatin1String(externPixmaps ? "\"" : ""));
    485485
    486                 pixmap.append(QLatin1String(externPixmaps ? "\"" : "") + QLatin1String(")"));
     486                pixmap.append(QLatin1String(externPixmaps ? "\"" : "") + QLatin1Char(')'));
    487487            }
    488488            out << indent << name << ".setBrush(QColorGroup::"
     
    579579    if (objectNames.contains(result)) {
    580580        int i = 2;
    581         while (objectNames.contains(result + QLatin1String("_") + QString::number(i)))
     581        while (objectNames.contains(result + QLatin1Char('_') + QString::number(i)))
    582582            i++;
    583         result += QLatin1String("_");
     583        result += QLatin1Char('_');
    584584        result += QString::number(i);
    585585    }
Note: See TracChangeset for help on using the changeset viewer.