def METHOD_NAME(self):
    self.settings.setValue("icon_view", not self.head_bar.view.isChecked())
    if not self.head_bar.view.isChecked():
        self.view_stack.slideInWidget(self.icon_view_scroll)
    else:
        self.view_stack.slideInWidget(self.list_view_scroll)