code: def refreshAlignmentUi(self):
          
          align = self.alignment()
          for name, value in (('align_left', Qt.AlignLeft),
                              ('align_right', Qt.AlignRight),
                              ('align_center', Qt.AlignHCenter),
                              ('align_justify', Qt.AlignJustify)):
              
              act = self._actions[name]
              act.blockSignals(True)
              act.setChecked(value == align)
              act.blockSignals(False)
docs: Refreshes the alignment UI information.