42 @type QSize (optional) |
42 @type QSize (optional) |
43 @return the requested pixmap |
43 @return the requested pixmap |
44 @rtype QPixmap |
44 @rtype QPixmap |
45 """ |
45 """ |
46 if key: |
46 if key: |
47 basename, ext = os.path.splitext(key) |
47 basename, _ext = os.path.splitext(key) |
48 if size and not size.isEmpty(): |
48 if size and not size.isEmpty(): |
49 key = "{0}_{1}_{2}".format(basename, size.width(), size.height()) |
49 key = "{0}_{1}_{2}".format(basename, size.width(), size.height()) |
50 else: |
50 else: |
51 key = basename |
51 key = basename |
52 |
52 |