Changeset 561 for trunk/src/qt3support/painting
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/qt3support/painting/q3paintdevicemetrics.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3paintdevicemetrics.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 64 64 int physicalDpiX() const { return pdev->physicalDpiX(); } 65 65 int physicalDpiY() const { return pdev->physicalDpiY(); } 66 int numColors() const { return pdev-> numColors(); }66 int numColors() const { return pdev->colorCount(); } 67 67 int depth() const { return pdev->depth(); } 68 68 -
trunk/src/qt3support/painting/q3paintengine_svg.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 264 264 d->currentClip++; 265 265 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)); 267 267 268 268 QDomElement path_element = d->doc.createElement(QLatin1String("path")); … … 510 510 ImageList::Iterator iit = d->images.begin(); 511 511 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); 513 513 (*iit).image.save(href, "PNG"); 514 514 (*iit).element.setAttribute(QLatin1String("xlink:href"), href); … … 517 517 PixmapList::Iterator pit = d->pixmaps.begin(); 518 518 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); 520 520 (*pit).pixmap.save(href, "PNG"); 521 521 (*pit).element.setAttribute(QLatin1String("xlink:href"), href); … … 593 593 QDomElement ne; 594 594 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)); 596 596 if (dirtyTransform) { 597 597 applyTransform(&ne); … … 622 622 // QPainter has a reversed understanding of pen/stroke vs. 623 623 // brush/fill for text 624 s += QString (QLatin1String("fill:rgb(%1,%2,%3);")).arg(pcol.red()).arg(pcol.green()).arg(pcol.blue());625 s += Q String(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;"); 626 626 QFont f = cfont; 627 627 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")); 630 630 // not a very scientific distribution 631 631 QString fw; … … 642 642 else 643 643 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()); 646 646 } 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()); 648 648 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); 650 650 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); 652 652 double pw = cpen.width(); 653 653 if (pw == 0 && cpen.style() != Qt::NoPen) … … 655 655 if (c == QPicturePrivate::PdcDrawLine) 656 656 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); 658 658 if (cpen.style() == Qt::DashLine) 659 s+= Q String(QLatin1String("stroke-dasharray:18,6;"));659 s+= QLatin1String("stroke-dasharray:18,6;"); 660 660 else if (cpen.style() == Qt::DotLine) 661 s+= Q String(QLatin1String("stroke-dasharray:3;"));661 s+= QLatin1String("stroke-dasharray:3;"); 662 662 else if (cpen.style() == Qt::DashDotLine) 663 s+= Q String(QLatin1String("stroke-dasharray:9,6,3,6;"));663 s+= QLatin1String("stroke-dasharray:9,6,3,6;"); 664 664 else if (cpen.style() == Qt::DashDotDotLine) 665 s+= Q String(QLatin1String("stroke-dasharray:9,3,3;"));665 s+= QLatin1String("stroke-dasharray:9,3,3;"); 666 666 if (cbrush.style() == Qt::NoBrush || c == QPicturePrivate::PdcDrawPolyline || c == QPicturePrivate::PdcDrawCubicBezier) 667 667 s += QLatin1String("fill:none;"); // Qt polylines use no brush, neither do Beziers 668 668 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()); 670 670 } 671 671 e->setAttribute(QLatin1String("style"), s); … … 680 680 m.m21() != 0.0 || m.m22() != 1.0); 681 681 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()); 683 683 } else if (rot) { 684 684 if (m.m12() == 0.0 && m.m21() == 0.0 && 685 685 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()); 687 687 else 688 s = QString (QLatin1String("matrix(%1,%2,%3,%4,%5,%6)"))688 s = QString::fromLatin1("matrix(%1,%2,%3,%4,%5,%6)") 689 689 .arg(m.m11()).arg(m.m12()) 690 690 .arg(m.m21()).arg(m.m22()) … … 731 731 d->brect.setY(y); 732 732 QString wstr = attr.contains(QLatin1String("width")) 733 ? attr.namedItem(QLatin1String("width")).nodeValue() : QString(QLatin1String("100%"));733 ? attr.namedItem(QLatin1String("width")).nodeValue() : QString::fromLatin1("100%"); 734 734 QString hstr = attr.contains(QLatin1String("height")) 735 ? attr.namedItem(QLatin1String("height")).nodeValue() : QString(QLatin1String("100%"));735 ? attr.namedItem(QLatin1String("height")).nodeValue() : QString::fromLatin1("100%"); 736 736 double width = d->parseLen(wstr, 0, true); 737 737 double height = d->parseLen(hstr, 0, false); -
trunk/src/qt3support/painting/q3paintengine_svg_p.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3painter.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3painter.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 83 83 private: 84 84 QRect adjustedRectangle(const QRect &r); 85 86 Q_DISABLE_COPY(Q3Painter) 85 87 }; 86 88 -
trunk/src/qt3support/painting/q3picture.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3picture.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3pointarray.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/qt3support/painting/q3pointarray.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 **
Note:
See TracChangeset
for help on using the changeset viewer.