Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/pixmapviewer.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 87 | { | |||
---|---|---|---|---|---|
107 | } | 107 | } | ||
108 | } else { | 108 | } else { | ||
109 | style()->drawItemPixmap(&painter, rect(), Qt::AlignCenter, m_pixmap); | 109 | style()->drawItemPixmap(&painter, rect(), Qt::AlignCenter, m_pixmap); | ||
110 | } | 110 | } | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | void PixmapViewer::checkPendingPixmaps() | 113 | void PixmapViewer::checkPendingPixmaps() | ||
114 | { | 114 | { | ||
115 | if (m_pendingPixmaps.count() > 0) { | 115 | if (!m_pendingPixmaps.isEmpty()) { | ||
116 | QPixmap pixmap = m_pendingPixmaps.dequeue(); | 116 | QPixmap pixmap = m_pendingPixmaps.dequeue(); | ||
117 | m_oldPixmap = m_pixmap.isNull() ? pixmap : m_pixmap; | 117 | m_oldPixmap = m_pixmap.isNull() ? pixmap : m_pixmap; | ||
118 | m_pixmap = pixmap; | 118 | m_pixmap = pixmap; | ||
119 | update(); | 119 | update(); | ||
120 | m_animation.start(); | 120 | m_animation.start(); | ||
121 | } else { | 121 | } else { | ||
122 | m_oldPixmap = m_pixmap; | 122 | m_oldPixmap = m_pixmap; | ||
123 | } | 123 | } | ||
124 | } | 124 | } | ||
125 | 125 | |