806862444d8846d0099943ecd2c063623d85a9c5,Orange/widgets/unsupervised/owdistancemap.py,DistanceMapItem,mouseMoveEvent,#DistanceMapItem#Any#,58

Before Change


        if event.buttons() & Qt.LeftButton and self.__dragging:
            i, j = self._cellAt(event.pos())
            item, area = self.__dragging
            area = QRectF(area.topLeft(), event.pos())
            selrange = self._selectionForArea(area)
            rect = self._visualRectForSelection(selrange)
            item.setRect(rect.normalized())
            self.__dragging = (item, area)

        super().mouseMoveEvent(event)

After Change


    def mouseMoveEvent(self, event):
        if event.buttons() & Qt.LeftButton and self.__dragging:
            r1, c1 = self._cellAt(event.buttonDownPos(Qt.LeftButton))
            r2, c2 = self._cellAt(event.pos())
            selrange = QRect(c1, r1, 2, 2).united(QRect(c2, r2, 2, 2))
            self.__elastic_band_select(selrange, self.Select)

        super().mouseMoveEvent(event)
        event.accept()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: biolab/orange3
Commit Name: 806862444d8846d0099943ecd2c063623d85a9c5
Time: 2014-12-30
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owdistancemap.py
Class Name: DistanceMapItem
Method Name: mouseMoveEvent


Project Name: biolab/orange3
Commit Name: 806862444d8846d0099943ecd2c063623d85a9c5
Time: 2014-12-30
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owdistancemap.py
Class Name: DistanceMapItem
Method Name: mousePressEvent


Project Name: biolab/orange3
Commit Name: 806862444d8846d0099943ecd2c063623d85a9c5
Time: 2014-12-30
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owdistancemap.py
Class Name: DistanceMapItem
Method Name: mouseMoveEvent


Project Name: biolab/orange3
Commit Name: 806862444d8846d0099943ecd2c063623d85a9c5
Time: 2014-12-30
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owdistancemap.py
Class Name: DistanceMapItem
Method Name: mouseReleaseEvent