Changeset 11341:4843f2e987d9 in orange


Ignore:
Timestamp:
02/20/13 14:45:04 (14 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Exclude the 'more...' link from the default 'Whats this' text.

Location:
Orange/OrangeCanvas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/document/schemeedit.py

    r11310 r11341  
    280280                    toolTip=self.tr("Show widget help"), 
    281281                    triggered=self.__onHelpAction, 
    282                     shortcut=QKeySequence.HelpContents 
     282                    shortcut=QKeySequence("F1") 
    283283                    ) 
    284284 
     
    10781078        if focus is not None: 
    10791079            desc = focus.description 
    1080             tip = whats_this_helper(desc) 
     1080            tip = whats_this_helper(desc, include_more_link=True) 
    10811081        else: 
    10821082            tip = "" 
  • Orange/OrangeCanvas/registry/qt.py

    r11286 r11341  
    322322 
    323323 
    324 def whats_this_helper(desc): 
    325     """What's this construction helper. 
     324def whats_this_helper(desc, include_more_link=False): 
     325    """ 
     326    A `What's this` text construction helper. If `include_more_link` is 
     327    True then the text will include a `more...` link. 
     328 
    326329    """ 
    327330    title = desc.name 
     
    342345        template.append("<p>{0}</p>".format(escape(long_description[:100]))) 
    343346 
    344     if help_url: 
     347    if help_url and include_more_link: 
    345348        template.append("<a href='{0}'>more...</a>".format(escape(help_url))) 
    346349 
Note: See TracChangeset for help on using the changeset viewer.