示例#1
0
 def pixmap(self):
     if not self.iconVisibility():
         return studiolibrary.pixmap('')
     if not self._pixmap:
         icon = self.icon()
         color = self.color()
         if icon == studiolibrary.image('folder') and not color:
             color = QtGui.QColor(250, 250, 250, 200)
         self._pixmap = studiolibrary.pixmap(icon, color=color)
     return self._pixmap
示例#2
0
 def pixmap(self):
     if not self.iconVisibility():
         return studiolibrary.pixmap('')
     if not self._pixmap:
         icon = self.icon()
         color = self.color()
         if icon == studiolibrary.image('folder') and not color:
             color = QtGui.QColor(250, 250, 250, 200)
         self._pixmap = studiolibrary.pixmap(icon, color=color)
     return self._pixmap
示例#3
0
 def pixmap(self):
     """
     @rtype: QtCore.QPixmap
     """
     if not self.iconVisibility():
         return studiolibrary.pixmap('')
     if not self._pixmap:
         icon = self.icon()
         if os.path.exists(icon):
             self._pixmap = studiolibrary.pixmap(icon)
         else:
             self._pixmap = studiolibrary.pixmap(studiolibrary.image('thumbnail'))
     return self._pixmap
示例#4
0
 def pixmap(self):
     """
     @rtype: QtCore.QPixmap
     """
     if not self.iconVisibility():
         return studiolibrary.pixmap('')
     if not self._pixmap:
         icon = self.icon()
         if os.path.exists(icon):
             self._pixmap = studiolibrary.pixmap(icon)
         else:
             self._pixmap = studiolibrary.pixmap(
                 studiolibrary.image('thumbnail'))
     return self._pixmap
示例#5
0
    def pixmap(self):
        """
        :rtype: QtGui.QPixmap
        """
        if not self.isIconVisible():
            return studiolibrary.pixmap("")

        if not self._pixmap:
            iconPath = self.iconPath()
            color = self.color()
            if iconPath == studiolibrary.image("folder") and not color:
                color = QtGui.QColor(250, 250, 250, 200)
            self._pixmap = studiolibrary.pixmap(iconPath, color=color)

        return self._pixmap