Ignore:
Timestamp:
10/29/12 15:59:20 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Moved QuickMenu from 'canvas' to 'document' package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/scene.py

    r11159 r11163  
    2020 
    2121from . import items 
    22 from . import quickmenu 
    2322 
    2423log = logging.getLogger(__name__) 
     
    119118 
    120119        self.user_interaction_handler = None 
    121         self._quick_menu = None 
    122120 
    123121        self.activated_mapper = NodeItemSignalMapper(self) 
     
    146144 
    147145        self.user_interaction_handler = None 
    148         self._quick_menu = None 
    149146 
    150147        self.clear() 
     
    212209        log.info("Setting registry '%s on '%s'." % (registry, self)) 
    213210        self.registry = registry 
    214         self._quick_menu = None 
    215  
    216     def quick_menu(self): 
    217         if self._quick_menu is None: 
    218             menu = quickmenu.QuickMenu() 
    219             if self.registry: 
    220                 menu.setModel(self.registry.model()) 
    221             self._quick_menu = menu 
    222         return self._quick_menu 
    223211 
    224212    def add_node_item(self, item): 
Note: See TracChangeset for help on using the changeset viewer.