Ignore:
Timestamp:
03/18/13 11:52:35 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added ping and shadow animations for node items.

File:
1 edited

Legend:

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

    r11320 r11411  
    234234        tab.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) 
    235235 
     236        nodes = QWidget(self, objectName="nodes") 
     237        nodes.setLayout(QVBoxLayout()) 
     238        nodes.layout().setContentsMargins(0, 0, 0, 0) 
     239 
     240        cb_anim = QCheckBox( 
     241            self.tr("Enable node animations"), 
     242            objectName="enable-node-animations", 
     243            toolTip=self.tr("Enable shadow and ping animations for node " 
     244                            "items in the scheme.") 
     245        ) 
     246        self.bind(cb_anim, "checked", "schemeedit/enable-node-animations") 
     247        nodes.layout().addWidget(cb_anim) 
     248 
     249        form.addRow(self.tr("Nodes"), nodes) 
     250 
    236251        links = QWidget(self, objectName="links") 
    237252        links.setLayout(QVBoxLayout()) 
Note: See TracChangeset for help on using the changeset viewer.