eric6/UI/PixmapCache.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8207
d359172d11be
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
167 height = max(height, pix.height()) 167 height = max(height, pix.height())
168 width = max(width, pix.width()) 168 width = max(width, pix.width())
169 pixmaps.append(pix) 169 pixmaps.append(pix)
170 if pixmaps: 170 if pixmaps:
171 pix = QPixmap(len(pixmaps) * width, height) 171 pix = QPixmap(len(pixmaps) * width, height)
172 pix.fill(Qt.transparent) 172 pix.fill(Qt.GlobalColor.transparent)
173 painter = QPainter(pix) 173 painter = QPainter(pix)
174 x = 0 174 x = 0
175 for pixmap in pixmaps: 175 for pixmap in pixmaps:
176 painter.drawPixmap(x, 0, pixmap.scaled(QSize(width, height))) 176 painter.drawPixmap(x, 0, pixmap.scaled(QSize(width, height)))
177 x += width 177 x += width

eric ide

mercurial