<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __set_default_ui_state(self, *args):
 """ Sets the Widget default ui state. :param \*args: Arguments. :type \*args: \* """


        LOGGER.debug("> Setting default View state!")

        if not self.model():
            return

        self.expandAll()

        for column in range(len(self.model().horizontal_headers)):
            self.resizeColumnToContents(column)