Changeset 769 for trunk/src/gui/painting/qwindowsurface_qws.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qwindowsurface_qws.cpp
r651 r769 81 81 inline bool isWidgetOpaque(const QWidget *w) 82 82 { 83 return w->d_func()->isOpaque ;83 return w->d_func()->isOpaque && !w->testAttribute(Qt::WA_TranslucentBackground); 84 84 } 85 85 … … 874 874 } 875 875 876 // ### copied from qwindowsurface_raster.cpp -- should be cross-platform 877 void QWSMemorySurface::beginPaint(const QRegion &rgn) 878 { 879 if (!isWidgetOpaque(window())) { 880 QPainter p(&img); 881 p.setCompositionMode(QPainter::CompositionMode_Source); 882 const QVector<QRect> rects = rgn.rects(); 883 const QColor blank = Qt::transparent; 884 for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) { 885 p.fillRect(*it, blank); 886 } 887 } 888 QWSWindowSurface::beginPaint(rgn); 889 } 890 876 891 // from qwindowsurface.cpp 877 892 extern void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset);
Note:
See TracChangeset
for help on using the changeset viewer.