Пример #1
0
 def pixmapSize(self, pixmap):
     """
     Return the preferred pixmap size based on the current `zoom` value.
     """
     scale = 2 * self.zoom / 100.0
     size = QSizeF(pixmap.size()) * scale
     return size.expandedTo(QSizeF(16, 16))
Пример #2
0
 def pixmapSize(self, pixmap):
     """
     Return the preferred pixmap size based on the current `zoom` value.
     """
     scale = 2 * self.zoom / 100.0
     size = QSizeF(pixmap.size()) * scale
     return size.expandedTo(QSizeF(16, 16))