Home | History | Annotate | Download | only in qt

Lines Matching refs:pixmap

81         // (b) QGraphicsOpacityEffect detaches the pixmap, which is inefficient on OpenGL.
89 // We need to do this so the pixmap would have hasAlpha().
101 // We have to use another intermediate pixmap, to make sure the mask applies only to this item
103 QPixmap pixmap(srcPixmap.size());
104 pixmap.fill(Qt::transparent);
106 if (pixmap.isNull())
109 QPainter pixmapPainter(&pixmap);
120 painter->drawPixmap(offset, pixmap);
239 QPixmap pixmap;
417 QPixmap pixmap;
419 if (QPixmapCache::find(m_backingStore.key, &pixmap)) {
421 return pixmap;
422 QPixmapCache::remove(m_backingStore.key); // Remove the reference to the pixmap in the cache to avoid a detach.
428 // If the pixmap is not in the cache or the view has grown since last cached.
429 if (pixmap.isNull() || m_size != m_backingStore.size) {
431 if (pixmap.isNull())
436 QPixmap oldPixmap = pixmap;
438 // If the pixmap is two small to hold the view contents we enlarge, otherwise just use the old (large) pixmap.
439 if (pixmap.width() < m_size.width() || pixmap.height() < m_size.height()) {
443 pixmap = QPixmap(m_size.toSize());
444 pixmap.fill(Qt::transparent);
449 // Blit the contents of oldPixmap back into the cached pixmap as we are just adding new pixels.
458 QPainter painter(&pixmap);
462 fill = false; // We cannot just fill the pixmap.
468 if (fill && !region.isEmpty()) { // Clear the entire pixmap with the background.
473 pixmap.fill(Qt::transparent);
484 pixmap.save(QString().sprintf("/tmp/%05d_A.png", recacheCount), "PNG");
487 QPainter painter(&pixmap);
498 pixmap.save(QString().sprintf("/tmp/%05d_B.png", recacheCount), "PNG");
509 pixmap.save(QString().sprintf("/tmp/%05d_C.png", recacheCount), "PNG");
512 m_backingStore.size = m_size; // Store the used size of the pixmap.
516 m_backingStore.key = QPixmapCache::insert(pixmap);
517 return pixmap;
613 || (m_currentContent.contentType == PixmapContentType && !m_currentContent.pixmap.hasAlpha())) {
653 painter->drawPixmap(m_state.contentsRect, m_currentContent.pixmap);
861 m_currentContent.pixmap = m_pendingContent.pixmap;
922 if (m_currentContent.contentType == PixmapContentType && !m_currentContent.pixmap.hasAlphaChannel())
1231 m_impl->m_pendingContent.pixmap = *pxm;
1236 m_impl->m_pendingContent.pixmap = QPixmap();