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

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/qt3support/painting/q3paintdevicemetrics.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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3paintdevicemetrics.h

    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 Qt3Support module 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**
     
    6464    int physicalDpiX() const { return pdev->physicalDpiX(); }
    6565    int physicalDpiY() const { return pdev->physicalDpiY(); }
    66     int numColors() const { return pdev->numColors(); }
     66    int numColors() const { return pdev->colorCount(); }
    6767    int depth() const { return pdev->depth(); }
    6868
  • trunk/src/qt3support/painting/q3paintengine_svg.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 Qt3Support module 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**
     
    264264    d->currentClip++;
    265265    e = d->doc.createElement(QLatin1String("clipPath"));
    266     e.setAttribute(QLatin1String("id"), QString(QLatin1String("clip%1")).arg(d->currentClip));
     266    e.setAttribute(QLatin1String("id"), QString::fromLatin1("clip%1").arg(d->currentClip));
    267267
    268268    QDomElement path_element = d->doc.createElement(QLatin1String("path"));
     
    510510    ImageList::Iterator iit = d->images.begin();
    511511    for (; iit != d->images.end(); ++iit) {
    512         QString href = QString(QLatin1String("%1_%2.png")).arg(svgName).arg(icount);
     512        QString href = QString::fromLatin1("%1_%2.png").arg(svgName).arg(icount);
    513513        (*iit).image.save(href, "PNG");
    514514        (*iit).element.setAttribute(QLatin1String("xlink:href"), href);
     
    517517    PixmapList::Iterator pit = d->pixmaps.begin();
    518518    for (; pit != d->pixmaps.end(); ++pit) {
    519         QString href = QString(QLatin1String("%1_%2.png")).arg(svgName).arg(icount);
     519        QString href = QString::fromLatin1("%1_%2.png").arg(svgName).arg(icount);
    520520        (*pit).pixmap.save(href, "PNG");
    521521        (*pit).element.setAttribute(QLatin1String("xlink:href"), href);
     
    593593            QDomElement ne;
    594594            ne = doc.createElement(QLatin1String("g"));
    595             ne.setAttribute(QLatin1String("style"), QString(QLatin1String("clip-path:url(#clip%1)")).arg(currentClip));
     595            ne.setAttribute(QLatin1String("style"), QString::fromLatin1("clip-path:url(#clip%1)").arg(currentClip));
    596596            if (dirtyTransform) {
    597597                applyTransform(&ne);
     
    622622        // QPainter has a reversed understanding of pen/stroke vs.
    623623        // brush/fill for text
    624         s += QString(QLatin1String("fill:rgb(%1,%2,%3);")).arg(pcol.red()).arg(pcol.green()).arg(pcol.blue());
    625         s += QString(QLatin1String("stroke-width:0;"));
     624        s += QString::fromLatin1("fill:rgb(%1,%2,%3);").arg(pcol.red()).arg(pcol.green()).arg(pcol.blue());
     625        s += QLatin1String("stroke-width:0;");
    626626        QFont f = cfont;
    627627        QFontInfo fi(f);
    628         s += QString(QLatin1String("font-size:%1;")).arg(fi.pointSize());
    629         s += QString(QLatin1String("font-style:%1;")).arg(f.italic() ? QLatin1String("italic") : QLatin1String("normal"));
     628        s += QString::fromLatin1("font-size:%1;").arg(fi.pointSize());
     629        s += QString::fromLatin1("font-style:%1;").arg(f.italic() ? QLatin1String("italic") : QLatin1String("normal"));
    630630        // not a very scientific distribution
    631631        QString fw;
     
    642642        else
    643643            fw = QLatin1String("900");
    644         s += QString(QLatin1String("font-weight:%1;")).arg(fw);
    645         s += QString(QLatin1String("font-family:%1;")).arg(f.family());
     644        s += QString::fromLatin1("font-weight:%1;").arg(fw);
     645        s += QString::fromLatin1("font-family:%1;").arg(f.family());
    646646    } else {
    647         s += QString(QLatin1String("stroke:rgb(%1,%2,%3);")).arg(pcol.red()).arg(pcol.green()).arg(pcol.blue());
     647        s += QString::fromLatin1("stroke:rgb(%1,%2,%3);").arg(pcol.red()).arg(pcol.green()).arg(pcol.blue());
    648648        if (pcol.alpha() != 255)
    649             s += QString(QLatin1String("stroke-opacity:%1;")).arg(pcol.alpha()/255.0);
     649            s += QString::fromLatin1("stroke-opacity:%1;").arg(pcol.alpha()/255.0);
    650650        if (bcol.alpha() != 255)
    651             s += QString(QLatin1String("fill-opacity:%1;")).arg(bcol.alpha()/255.0);
     651            s += QString::fromLatin1("fill-opacity:%1;").arg(bcol.alpha()/255.0);
    652652        double pw = cpen.width();
    653653        if (pw == 0 && cpen.style() != Qt::NoPen)
     
    655655        if (c == QPicturePrivate::PdcDrawLine)
    656656            pw /= (qAbs(worldMatrix.m11()) + qAbs(worldMatrix.m22())) / 2.0;
    657         s += QString(QLatin1String("stroke-width:%1;")).arg(pw);
     657        s += QString::fromLatin1("stroke-width:%1;").arg(pw);
    658658        if (cpen.style() == Qt::DashLine)
    659             s+= QString(QLatin1String("stroke-dasharray:18,6;"));
     659            s+= QLatin1String("stroke-dasharray:18,6;");
    660660        else if (cpen.style() == Qt::DotLine)
    661             s+= QString(QLatin1String("stroke-dasharray:3;"));
     661            s+= QLatin1String("stroke-dasharray:3;");
    662662        else if (cpen.style() == Qt::DashDotLine)
    663             s+= QString(QLatin1String("stroke-dasharray:9,6,3,6;"));
     663            s+= QLatin1String("stroke-dasharray:9,6,3,6;");
    664664        else if (cpen.style() == Qt::DashDotDotLine)
    665             s+= QString(QLatin1String("stroke-dasharray:9,3,3;"));
     665            s+= QLatin1String("stroke-dasharray:9,3,3;");
    666666        if (cbrush.style() == Qt::NoBrush || c == QPicturePrivate::PdcDrawPolyline || c == QPicturePrivate::PdcDrawCubicBezier)
    667667            s += QLatin1String("fill:none;"); // Qt polylines use no brush, neither do Beziers
    668668        else
    669             s += QString(QLatin1String("fill:rgb(%1,%2,%3);")).arg(bcol.red()).arg(bcol.green()).arg(bcol.blue());
     669            s += QString::fromLatin1("fill:rgb(%1,%2,%3);").arg(bcol.red()).arg(bcol.green()).arg(bcol.blue());
    670670    }
    671671    e->setAttribute(QLatin1String("style"), s);
     
    680680                 m.m21() != 0.0 || m.m22() != 1.0);
    681681    if (!rot && (m.dx() != 0.0 || m.dy() != 0.0)) {
    682         s = QString(QLatin1String("translate(%1,%2)")).arg(m.dx()).arg(m.dy());
     682        s = QString::fromLatin1("translate(%1,%2)").arg(m.dx()).arg(m.dy());
    683683    } else if (rot) {
    684684        if (m.m12() == 0.0 && m.m21() == 0.0 &&
    685685             m.dx() == 0.0 && m.dy() == 0.0)
    686             s = QString(QLatin1String("scale(%1,%2)")).arg(m.m11()).arg(m.m22());
     686             s = QString::fromLatin1("scale(%1,%2)").arg(m.m11()).arg(m.m22());
    687687        else
    688             s = QString(QLatin1String("matrix(%1,%2,%3,%4,%5,%6)"))
     688            s = QString::fromLatin1("matrix(%1,%2,%3,%4,%5,%6)")
    689689                .arg(m.m11()).arg(m.m12())
    690690                .arg(m.m21()).arg(m.m22())
     
    731731    d->brect.setY(y);
    732732    QString wstr = attr.contains(QLatin1String("width"))
    733                    ? attr.namedItem(QLatin1String("width")).nodeValue() : QString(QLatin1String("100%"));
     733        ? attr.namedItem(QLatin1String("width")).nodeValue() : QString::fromLatin1("100%");
    734734    QString hstr = attr.contains(QLatin1String("height"))
    735                    ? attr.namedItem(QLatin1String("height")).nodeValue() : QString(QLatin1String("100%"));
     735        ? attr.namedItem(QLatin1String("height")).nodeValue() : QString::fromLatin1("100%");
    736736    double width = d->parseLen(wstr, 0, true);
    737737    double height = d->parseLen(hstr, 0, false);
  • trunk/src/qt3support/painting/q3paintengine_svg_p.h

    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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3painter.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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3painter.h

    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 Qt3Support module 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**
     
    8383private:
    8484    QRect adjustedRectangle(const QRect &r);
     85   
     86    Q_DISABLE_COPY(Q3Painter)
    8587};
    8688
  • trunk/src/qt3support/painting/q3picture.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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3picture.h

    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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3pointarray.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 Qt3Support module 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**
  • trunk/src/qt3support/painting/q3pointarray.h

    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 Qt3Support module 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**
Note: See TracChangeset for help on using the changeset viewer.