MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / _styleSheetFillName

Method _styleSheetFillName

Utils/GradientUtils.py:91–101  ·  view source on GitHub ↗
(cls, gradient)

Source from the content-addressed store, hash-verified

89
90 @classmethod
91 def _styleSheetFillName(cls, gradient):
92 if gradient.type() == QGradient.LinearGradient:
93 return 'qlineargradient'
94 elif gradient.type() == QGradient.RadialGradient:
95 return 'qradialgradient'
96 elif gradient.type() == QGradient.ConicalGradient:
97 return 'qconicalgradient'
98 else:
99 print('GradientUtils::_styleSheetFillName(): gradient type ',
100 gradient.type(), ' not supported!')
101 return ''
102
103 @classmethod
104 def toJson(cls, gradient):

Callers 1

styleSheetCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected