Changeset 9397:08098271fcf1 in orange


Ignore:
Timestamp:
12/20/11 22:48:25 (2 years ago)
Author:
markotoplak
Branch:
default
Convert:
cc2da5bdd31d036e2c55abc2e07e0424cd814f21
Message:

Tried to fix owplot button on Qt 4.6. References #1032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplotgui.py

    r9391 r9397  
    445445            b = self.menu_button(self.Select, [self.SelectionOne, self.SelectionAdd, self.SelectionRemove, self.SelectionToggle], widget) 
    446446        else: 
    447             b = OWButton(OWAction(self._plot, icon_name, attr_name, attr_value, callback), widget) 
     447            b = OWButton(parent=widget) 
     448            ac = OWAction(self._plot, icon_name, attr_name, attr_value, callback, parent=b) 
     449            b.setDefaultAction(ac) 
    448450        b.setToolTip(name) 
    449451        if widget.layout() is not None: 
Note: See TracChangeset for help on using the changeset viewer.