Helpviewer/HelpWindow.py

branch
5_2_x
changeset 1692
f67b8b8e372a
parent 1650
ee57b7f8fa10
child 1915
08b6bb53603a
equal deleted inserted replaced
1691:0206540483d4 1692:f67b8b8e372a
1554 """ 1554 """
1555 Private slot called in to enter Whats This mode. 1555 Private slot called in to enter Whats This mode.
1556 """ 1556 """
1557 QWhatsThis.enterWhatsThisMode() 1557 QWhatsThis.enterWhatsThisMode()
1558 1558
1559 def __showHistoryMenu(self):
1560 """
1561 Private slot called in order to show the history menu.
1562 """
1563 self.historyMenu.clear()
1564 self.historyMenu.addAction(self.clearHistoryAct)
1565 self.clearHistoryAct.setData(-1)
1566 self.historyMenu.addSeparator()
1567 idx = 0
1568 for hist in self.mHistory:
1569 act = self.historyMenu.addAction(
1570 Utilities.compactPath(hist, self.maxMenuFilePathLen))
1571 act.setData(idx)
1572 idx += 1
1573 act.setIcon(HelpWindow.__getWebIcon(QUrl(hist)))
1574
1575 def __titleChanged(self, browser, title): 1559 def __titleChanged(self, browser, title):
1576 """ 1560 """
1577 Private slot called to handle a change of s browser's title. 1561 Private slot called to handle a change of s browser's title.
1578 1562
1579 @param browser reference to the browser (HelpBrowser) 1563 @param browser reference to the browser (HelpBrowser)

eric ide

mercurial