code: def refreshButtons(self):
          
          last = self._last
          first = self._first
          
          joiner = self._containerWidget.currentJoiner()
          
          # the first button set can contain the toggle options
          if first:
              self.uiJoinSBTN.setActionTexts(['AND', 'OR'])
          elif joiner == QueryCompound.Op.And:
              self.uiJoinSBTN.setActionTexts(['AND'])
          else:
              self.uiJoinSBTN.setActionTexts(['OR'])
          
          # the last option should not show an active action
          if last:
              self.uiJoinSBTN.setCurrentAction(None)
          
          # otherwise, highlight the proper action
          else:
              act = self.uiJoinSBTN.findAction(QueryCompound.Op[joiner].upper())
              self.uiJoinSBTN.setCurrentAction(act)
          
          enable = QueryCompound.typecheck(self._query) or self.isChecked()
          self.uiEnterBTN.setEnabled(enable)
docs: Refreshes the buttons for building this sql query.