def __set_recent_files_actions(self):
        """
        Sets the recent files actions.
        """

        recentFiles = [foundations.strings.to_string(file)
                       for file in self.__settings.get_key(self.__settings_section, "recentFiles").toStringList()
                       if foundations.common.path_exists(file)]
        if not recentFiles:
            return

        numberRecentFiles = min(len(recentFiles), self.__maximum_recent_files)

        for i in range(self.__maximum_recent_files):
            if i >= numberRecentFiles:
                self.__recent_files_actions[i].setVisible(False)
                continue

            LOGGER.debug("> Adding '{0}' file to recent files actions.".format(recentFiles[i]))

            self.__recent_files_actions[i].setText("{0} {1}".format(i + 1, os.path.basename(
                foundations.strings.to_string(recentFiles[i]))))
            self.__recent_files_actions[i].data = foundations.strings.to_string(recentFiles[i])
            self.__recent_files_actions[i].setVisible(True)
Sets the recent files actions.