Go to the source code of this file.
◆ RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED
#define RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED |
( |
| ) |
|
Value: \
{ \
ItemInfoReadLocker lock; \
\
if (m_data->imageSizeCached) \
{ \
return (double)m_data->imageSize.width() / \
m_data->imageSize.height(); \
} \
}
◆ RETURN_IF_CACHED
#define RETURN_IF_CACHED |
( |
|
x | ) |
|
Value: \
{ \
ItemInfoReadLocker lock; \
\
if (m_data->x##Cached) \
{ \
return m_data->x; \
} \
}
◆ STORE_IN_CACHE_AND_RETURN
#define STORE_IN_CACHE_AND_RETURN |
( |
|
x, |
|
|
|
retrieveMethod |
|
) |
| |
Value: \
{ \
ItemInfoWriteLocker lock; \
\
if (!values.isEmpty()) \
{ \
m_data.data()->x##Cached = true; \
m_data.data()->x = retrieveMethod; \
} \
\
return m_data->x; \
}