Changeset 9132:8442ceb5e817 in orange


Ignore:
Timestamp:
10/20/11 17:22:54 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
86b72dd51341bfdd3d277afac8112d007bc551aa
Message:

Fixed cutoff line Z ordering.
Fixes and error with selection of the last added cluster.

Location:
orange/OrangeWidgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWClustering.py

    r9127 r9132  
    771771            self.setCursor(Qt.SizeVerCursor) 
    772772        self.cutoff_height = widget.root_cluster.height 
    773         self.setZValue(widget.item(widget.root_cluster).zValue() + 10) 
     773        self.setZValue(widget.item(widget.root_cluster).zValue() + widget.root_cluster.height + 10) 
    774774        widget.connect(widget, SIGNAL("dendrogramGeometryChanged(QRectF)"), self.on_geometry_changed) 
    775775         
     
    803803            self.setLine(0, pos.y(), geom.width(), pos.y()) 
    804804            self.setCursor(Qt.SizeVerCursor) 
    805         self.setZValue(widget.item(widget.root_cluster).zValue() + 10) 
     805        self.setZValue(widget.item(widget.root_cluster).zValue() + widget.root_cluster.height + 10) 
    806806             
    807807    def mousePressEvent(self, event): 
  • orange/OrangeWidgets/Unsupervised/OWHierarchicalClustering.py

    r9127 r9132  
    427427        if self.matrix: 
    428428            try: 
    429                 items = self.dendrogram.selectedItems() 
     429                items = self.dendrogram.widget.selected_items 
    430430                self.selected_clusters = [item.cluster for item in items] 
    431431                self.commit_data_if() 
Note: See TracChangeset for help on using the changeset viewer.