コード例 #1
0
ファイル: delegates.py プロジェクト: rcoacci/PyStockFlow
 def displayText(self, value, locale):
     """displayText ( const QVariant & value, const QLocale & locale ) """
     value = value.strftime(self.pattern)
     return QStyledItemDelegate.displayText(self, value, locale)
コード例 #2
0
ファイル: delegates.py プロジェクト: rcoacci/PyStockFlow
    def displayText(self, value, locale):
        """displayText ( const QVariant & value, const QLocale & locale ) """

        return QStyledItemDelegate.displayText(self, self.tr(self.operations[value]), locale)
コード例 #3
0
ファイル: item_delegate.py プロジェクト: glasmasin/moneyguru
 def displayText(self, p_object, locale):
     if self._display_text:
         return QStyledItemDelegate.displayText(self, p_object, locale)
     return ""