equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
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 |