src/gui/image/qpixmapdata_p.h
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   115     inline int height() const { return h; }
   115     inline int height() const { return h; }
   116     QT_DEPRECATED inline int numColors() const { return metric(QPaintDevice::PdmNumColors); }
   116     QT_DEPRECATED inline int numColors() const { return metric(QPaintDevice::PdmNumColors); }
   117     inline int colorCount() const { return metric(QPaintDevice::PdmNumColors); }
   117     inline int colorCount() const { return metric(QPaintDevice::PdmNumColors); }
   118     inline int depth() const { return d; }
   118     inline int depth() const { return d; }
   119     inline bool isNull() const { return is_null; }
   119     inline bool isNull() const { return is_null; }
       
   120     inline qint64 cacheKey() const {
       
   121         int classKey = id;
       
   122         if (classKey >= 1024)
       
   123             classKey = -(classKey >> 10);
       
   124         return ((((qint64) classKey) << 56)
       
   125                 | (((qint64) ser_no) << 32)
       
   126                 | ((qint64) detach_no));
       
   127     }
   120 
   128 
   121 #if defined(Q_OS_SYMBIAN)
   129 #if defined(Q_OS_SYMBIAN)
   122     virtual void* toNativeType(NativeType type);
   130     virtual void* toNativeType(NativeType type);
   123     virtual void fromNativeType(void* pixmap, NativeType type);
   131     virtual void fromNativeType(void* pixmap, NativeType type);
   124 #endif
   132 #endif