286 def isDefaultToolBar(self, toolBar): |
286 def isDefaultToolBar(self, toolBar): |
287 """ |
287 """ |
288 Public method to check, if a toolbar was added with addToolBar(). |
288 Public method to check, if a toolbar was added with addToolBar(). |
289 |
289 |
290 @param toolBar reference to the toolbar to be checked (QToolBar) |
290 @param toolBar reference to the toolbar to be checked (QToolBar) |
|
291 @return flag indicating an added toolbar (boolean) |
291 """ |
292 """ |
292 return toolBar is not None and \ |
293 return toolBar is not None and \ |
293 id(toolBar) in self.__defaultToolBars |
294 id(toolBar) in self.__defaultToolBars |
294 |
295 |
295 def createToolBar(self, title, name=""): |
296 def createToolBar(self, title, name=""): |