Ignore:
Timestamp:
12/18/12 13:30:45 (16 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Implemented a different way to handle toolbox/canvas hover/selection help text.

Now using a QStatusTip subclass to notify the top level window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvastooldock.py

    r11242 r11243  
    1313from ..gui.toolgrid import ToolGrid 
    1414from ..gui.toolbar import DynamicResizeToolBar 
     15from ..gui.quickhelp import QuickHelp 
    1516from .widgettoolbox import WidgetToolBox, iter_item 
     17 
    1618from ..registry.qt import QtWidgetRegistry 
    1719 
     
    174176 
    175177 
    176 class QuickHelpWidget(QTextEdit): 
    177     def __init__(self, *args, **kwargs): 
    178         QTextEdit.__init__(self, *args, **kwargs) 
    179  
    180         self.setReadOnly(True) 
    181  
     178class QuickHelpWidget(QuickHelp): 
    182179    def minimumSizeHint(self): 
    183180        """Reimplemented to allow the Splitter to resize the widget 
Note: See TracChangeset for help on using the changeset viewer.