Changeset 5049:8881c52bb0a0 in orange


Ignore:
Timestamp:
08/01/08 21:53:30 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
3e2e10499659e943336bec3f7369cb36126c5fe1
Message:
  • added a workaround for what seems like a Qt bug (when a checkbox is added to a table, it get unchecked)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWSelectData.py

    r5034 r5049  
    630630            else: 
    631631                cw = QCheckBox(str(len(cond.operator.getFilter(self.data.domain, cond.varName, cond.val1, cond.val2, cond.negated, cond.caseSensitive)(self.data))), self) 
     632#                cw.setChecked(cond.enabled) 
     633 
     634            self.criteriaTable.setCellWidget(row, 0, cw) 
     635# This is a fix for Qt bug (4.3). When Qt is fixed, the setChecked above should suffice 
     636# but now it unchecks the checkbox as it is inserted  
     637            if cond.type != "OR": 
    632638                cw.setChecked(cond.enabled) 
    633 #                self.connect(cw, SIGNAL("toggled(bool)"), lambda val, cond=cond: self.criteriaActiveChange(cond, val)) 
    634                 print "checked:", cw.isChecked() 
    635  
    636             self.criteriaTable.setCellWidget(row, 0, cw) 
    637             print "checked:", cw.isChecked() 
    638639 
    639640            # column 1 
Note: See TracChangeset for help on using the changeset viewer.