def __init__(self, parent: QObject = None):
     super().__init__(parent)
     self.feature: Optional[QgsFeature] = None
     self.vertices: List[Union[QgsVertexId, QgsPoint]] = []
     self.has_z = False
     self.has_m = False
     self.number_format = SettingsRegistry.number_format()
 def number_format_changed(self):
     """
     Called when the predefined number format is changed, and we need to update everything
     """
     self.number_format = SettingsRegistry.number_format()
     self.dataChanged.emit(
         self.index(0, 0),
         self.index(self.rowCount() - 1,
                    self.columnCount() - 1))
    def restore_settings(self):
        """
        Restores saved settings
        """
        current_label_filter = SettingsRegistry.label_filtering()
        self.filtering_combo.setCurrentIndex(self.filtering_combo.findData(current_label_filter))
        self.check_center_on_selection.setChecked(SettingsRegistry.center_on_selected())
        self.check_flash_feature.setChecked(SettingsRegistry.flash_feature())
        self.check_flash_vertex.setChecked(SettingsRegistry.flash_vertex())

        self.point_symbol_button.setSymbol(SettingsRegistry.vertex_symbol())
        self.vertex_font_button.setTextFormat(SettingsRegistry.vertex_format())
        self.number_format = SettingsRegistry.number_format()