Changeset 846 for trunk/src/gui/painting/qpaintengine_x11.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qpaintengine_x11.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 80 80 #endif 81 81 82 #include <private/qstylehelper_p.h> 83 82 84 QT_BEGIN_NAMESPACE 83 85 … … 225 227 { 226 228 QPixmap pm; 227 QString key = QLatin1String("$qt-alpha-brush$") + QString::number(alpha) + QString::number(screen); 229 QString key = QLatin1Literal("$qt-alpha-brush$") 230 % HexString<uchar>(alpha) 231 % HexString<int>(screen); 232 228 233 if (!QPixmapCache::find(key, pm)) { 229 234 // #### why not use a mono image here???? … … 316 321 } 317 322 // none found, replace one 318 int i = rand() % 16;323 int i = qrand() % 16; 319 324 320 325 if (X11->pattern_fills[i].screen != screen && X11->pattern_fills[i].picture) { … … 1449 1454 void QX11PaintEngine::drawEllipse(const QRect &rect) 1450 1455 { 1456 if (rect.isEmpty()) { 1457 drawRects(&rect, 1); 1458 return; 1459 } 1460 1451 1461 Q_D(QX11PaintEngine); 1452 1462 QRect devclip(SHRT_MIN, SHRT_MIN, SHRT_MAX*2 - 1, SHRT_MAX*2 - 1); … … 1907 1917 1908 1918 QPixmap pixmap = qt_toX11Pixmap(px); 1919 if(pixmap.isNull()) 1920 return; 1909 1921 1910 1922 if ((d->xinfo && d->xinfo->screen() != pixmap.x11Info().screen())
Note:
See TracChangeset
for help on using the changeset viewer.