pub unsafe fn uniform_restore_initial_values(&self) {
        let index = self.faction_list_filter.map_to_source(&self.faction_list_view.selection_model().current_index());
        let data: HashMap<String, String> = serde_json::from_str(&index.data_1a(FACTION_DATA).to_string().to_std_string()).unwrap();

        if let Some(uniform_primary) = data.get("uniform_initial_primary") {
            set_color_safe(&self.get_ref_uniform_colour_primary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_primary))).as_ptr());
        }
        if let Some(uniform_secondary) = data.get("uniform_initial_secondary") {
            set_color_safe(&self.get_ref_uniform_colour_secondary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_secondary))).as_ptr());
        }
        if let Some(uniform_tertiary) = data.get("uniform_initial_tertiary") {
            set_color_safe(&self.get_ref_uniform_colour_tertiary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_tertiary))).as_ptr());
        }
    }
/// This function restores the uniform colours to its initial values when we opened the tool.
This function restores the uniform colours to its initial values when we opened the tool.
This function restores the uniform colours to its initial values when we opened the tool .
pub unsafe fn uniform_restore_initial_values(&self) {
        let index = self.faction_list_filter.map_to_source(&self.faction_list_view.selection_model().current_index());
        let data: HashMap<String, String> = serde_json::from_str(&index.data_1a(FACTION_DATA).to_string().to_std_string()).unwrap();
        if let Some(uniform_primary) = data.get("uniform_initial_primary") {
            set_color_safe(&self.get_ref_uniform_colour_primary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_primary))).as_ptr());
        }
        if let Some(uniform_secondary) = data.get("uniform_initial_secondary") {
            set_color_safe(&self.get_ref_uniform_colour_secondary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_secondary))).as_ptr());
        }
        if let Some(uniform_tertiary) = data.get("uniform_initial_tertiary") {
            set_color_safe(&self.get_ref_uniform_colour_tertiary().as_ptr().static_upcast(), &QColor::from_q_string(&QString::from_std_str(format!("#{}", uniform_tertiary))).as_ptr());
        }
    }
pub unsafe fn uniform_restore_initial_values ( & self ) { let index = self . faction_list_filter . map_to_source ( & self . faction_list_view . selection_model ( ) . current_index ( ) ) ; let data : HashMap < String , String > = serde_json :: from_str ( & index . data_1a ( FACTION_DATA ) . to_string ( ) . to_std_string ( ) ) . unwrap ( ) ; if let Some ( uniform_primary ) = data . get ( " " ) { set_color_safe ( & self . get_ref_uniform_colour_primary ( ) . as_ptr ( ) . static_upcast ( ) , & QColor :: from_q_string ( & QString :: from_std_str ( format ! ( " " uniform_primary ) ) ) . as_ptr ( ) ) ; } if let Some ( uniform_secondary ) = data . get ( " " ) { set_color_safe ( & self . get_ref_uniform_colour_secondary ( ) . as_ptr ( ) . static_upcast ( ) , & QColor :: from_q_string ( & QString :: from_std_str ( format ! ( " " uniform_secondary ) ) ) . as_ptr ( ) ) ; } if let Some ( uniform_tertiary ) = data . get ( " " ) { set_color_safe ( & self . get_ref_uniform_colour_tertiary ( ) . as_ptr ( ) . static_upcast ( ) , & QColor :: from_q_string ( & QString :: from_std_str ( format ! ( " " uniform_tertiary ) ) ) . as_ptr ( ) ) ; } }
This function restores the uniform colours to its initial values when we opened the tool.
This function restores the uniform colours to its initial values when we opened the tool .
&self
&self