6841688e05d41d3a22b705abd46212ad2610b475,Orange/widgets/utils/graphicslayoutitem.py,SimpleLayoutItem,sizeHint,#SimpleLayoutItem#Any#Any#,58

Before Change


        if which == Qt.PreferredSize:
            brect = self.item.boundingRect()
            brect = self.item.mapRectToParent(brect)
            return brect.size()
        else:
            return QSizeF()

    def updateGeometry(self):

After Change


            brect = self.item.mapRectToParent(brect)
            scale = self.__transform
            size = brect.size()
            if scale is not None:
                // undo the scaling
                sx, sy = scale.xScale(), scale.yScale()
                size = QSizeF(size.width() / sx, size.height() / sy)
            if constraint != QSizeF(-1, -1):
                size = scaled(size, constraint, self.__aspectMode)
            return size
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: 6841688e05d41d3a22b705abd46212ad2610b475
Time: 2020-03-02
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/utils/graphicslayoutitem.py
Class Name: SimpleLayoutItem
Method Name: sizeHint


Project Name: biolab/orange3
Commit Name: b5d7f448db71facfa001c137bd93d3d5a759e783
Time: 2020-01-27
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/utils/graphicstextlist.py
Class Name: TextListWidget
Method Name: sizeHint


Project Name: biolab/orange3
Commit Name: f06fe08941aaeec787a57c8540c887eec3264547
Time: 2015-06-15
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/document/editlinksdialog.py
Class Name: GraphicsTextWidget
Method Name: sizeHint