buixuanan / fritzing

Automatically exported from code.google.com/p/fritzing
0 stars 0 forks source link

autorouting button doesn't display a nice disabled state #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When autorouting is disabled, the autoroute icon changes to text.  It
doesn't seem to return to the icon when autorouting is enabled.  To
replicate, just go to pcb view before you put any parts on the sketch.  You
may have to click on the trace menu to get the button to update.  Then add
a couple of parts and connect them.  Update the trace menu and see what
happens to the autoroute button.

Probably need to subclass QToolButton or QAction to get it to swap icons
when the enabled state changes.  Or maybe use another Qt button class.

Original issue reported on code.google.com by irasc...@gmail.com on 9 Nov 2008 at 9:51

GoogleCodeExporter commented 9 years ago
QPushButton works fine (though you have to enable the pushbutton directly) 
rather
than just the QAction

Original comment by irasc...@gmail.com on 10 Nov 2008 at 10:06