def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent widget (QWidget)
     """
     E4ModelMenu.__init__(self, parent)
     
     self.connect(self, SIGNAL("activated(const QModelIndex&)"), self.__activated)
     self.setStatusBarTextRole(BookmarksModel.UrlStringRole)
     self.setSeparatorRole(BookmarksModel.SeparatorRole)
     
     self.setContextMenuPolicy(Qt.CustomContextMenu)
     self.connect(self, SIGNAL("customContextMenuRequested(const QPoint &)"), 
                  self.__contextMenuRequested)
 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent widget (QWidget)
     """
     E4ModelMenu.__init__(self, parent)
     
     self.__historyManager = None
     self.__historyMenuModel = None
     self.__initialActions = []
     
     self.setMaxRows(7)
     
     self.connect(self, SIGNAL("activated(const QModelIndex&)"), self.__activated)
     self.setStatusBarTextRole(HistoryModel.UrlStringRole)