code: def setAdvancedAction(self, standardAction, advancedAction):
          
          if advancedAction:
              self._advancedMap[standardAction] = advancedAction
              margins     = list(self.getContentsMargins())
              margins[2]  = 22
              self.setContentsMargins(*margins)
              
          elif standardAction in self._advancedMap:
              self._advancedMap.pop(standardAction)
              if not self._advancedMap:
                  margins     = list(self.getContentsMargins())
                  margins[2]  = 22
                  self.setContentsMargins(*margins)
docs: Links an advanced action with the inputed standard action.  This will \
          create a tool button alongside the inputed standard action when the \
          menu is displayed.  If the user selects the advanced action, then the \
          advancedAction.triggered signal will be emitted.
          
          :param      standardAction | <QAction>
                      advancedAction | <QAction> || None