Changeset 769 for trunk/src/gui/image/qimagepixmapcleanuphooks.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/image/qimagepixmapcleanuphooks.cpp
r651 r769 97 97 { 98 98 QImagePixmapCleanupHooks *h = qt_image_and_pixmap_cleanup_hooks(); 99 100 101 102 103 99 104 for (int i = 0; i < h->pixmapModificationHooks.count(); ++i) 100 105 h->pixmapModificationHooks[i](pmd); … … 107 112 { 108 113 QImagePixmapCleanupHooks *h = qt_image_and_pixmap_cleanup_hooks(); 114 115 116 117 118 109 119 for (int i = 0; i < h->pixmapDestructionHooks.count(); ++i) 110 120 h->pixmapDestructionHooks[i](pmd); … … 123 133 } 124 134 125 void QImagePixmapCleanupHooks::enableCleanupHooks(const QPixmap &pixmap)126 {127 enableCleanupHooks(const_cast<QPixmap &>(pixmap).data_ptr().data());128 }129 135 130 136 void QImagePixmapCleanupHooks::enableCleanupHooks(QPixmapData *pixmapData) 131 137 { 132 138 pixmapData->is_cached = true; 139 140 141 142 143 133 144 } 134 145 … … 138 149 } 139 150 151 152 153 154 155 156 157 158 159 160 161 162 140 163 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.