eric6/UI/PixmapCache.py

changeset 7533
88261c96484b
parent 7488
36ec7469f492
child 7781
607a6098cb44
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
138 @type PixmapCache 138 @type PixmapCache
139 @return the requested icon 139 @return the requested icon
140 @rtype QIcon 140 @rtype QIcon
141 """ 141 """
142 pix1 = QPixmap(cache.getPixmap(key, size=size)) 142 pix1 = QPixmap(cache.getPixmap(key, size=size))
143 pix2 = cache.getPixmap("symlink.png") 143 pix2 = cache.getPixmap("symlink")
144 painter = QPainter(pix1) 144 painter = QPainter(pix1)
145 painter.drawPixmap(0, 10, pix2) 145 painter.drawPixmap(0, 10, pix2)
146 painter.end() 146 painter.end()
147 return QIcon(pix1) 147 return QIcon(pix1)
148 148

eric ide

mercurial