E5Gui/E5SqueezeLabels.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3057
10516539f238
parent 3034
7ce719013078
child 3065
070b35dde35e
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
107 Protected method called when some painting is required. 107 Protected method called when some painting is required.
108 108
109 @param event reference to the paint event (QPaintEvent) 109 @param event reference to the paint event (QPaintEvent)
110 """ 110 """
111 fm = self.fontMetrics() 111 fm = self.fontMetrics()
112 if (fm.width(self.__surrounding.format(self.__path)) > 112 if (fm.width(self.__surrounding.format(self.__path)) >
113 self.contentsRect().width()): 113 self.contentsRect().width()):
114 super(E5SqueezeLabelPath, self).setText( 114 super(E5SqueezeLabelPath, self).setText(
115 self.__surrounding.format(compactPath(self.__path, 115 self.__surrounding.format(compactPath(self.__path,
116 self.contentsRect().width(), 116 self.contentsRect().width(),
117 self.length)) 117 self.length))

eric ide

mercurial