pub unsafe fn filter_list(&self) {

        // So, funny bug: if we "hide" with a filter the open item, the entire thing crashes. Not sure why.
        // So we have to "unselect" it, filter, then check if it's still visible, and select it again.
        self.faction_list_view.selection_model().select_q_item_selection_q_flags_selection_flag(&self.faction_list_view.selection_model().selection(), SelectionFlag::Toggle.into());

        self.faction_list_filter.set_filter_case_sensitivity(CaseSensitivity::CaseInsensitive);
        self.faction_list_filter.set_filter_regular_expression_q_string(&self.faction_list_filter_line_edit.text());

        self.faction_list_view.selection_model().select_q_item_selection_q_flags_selection_flag(&self.faction_list_view.selection_model().selection(), SelectionFlag::Toggle.into());
    }
/// Function to filter the faction list.
Function to filter the faction list.
Function to filter the faction list .
pub unsafe fn filter_list(&self) {
        // So, funny bug: if we "hide" with a filter the open item, the entire thing crashes. Not sure why.
        // So we have to "unselect" it, filter, then check if it's still visible, and select it again.
        self.faction_list_view.selection_model().select_q_item_selection_q_flags_selection_flag(&self.faction_list_view.selection_model().selection(), SelectionFlag::Toggle.into());
        self.faction_list_filter.set_filter_case_sensitivity(CaseSensitivity::CaseInsensitive);
        self.faction_list_filter.set_filter_regular_expression_q_string(&self.faction_list_filter_line_edit.text());
        self.faction_list_view.selection_model().select_q_item_selection_q_flags_selection_flag(&self.faction_list_view.selection_model().selection(), SelectionFlag::Toggle.into());
    }
pub unsafe fn filter_list ( & self ) { // So, funny bug: if we "hide" with a filter the open item, the entire thing crashes. Not sure why. // So we have to "unselect" it, filter, then check if it's still visible, and select it again. self . faction_list_view . selection_model ( ) . select_q_item_selection_q_flags_selection_flag ( & self . faction_list_view . selection_model ( ) . selection ( ) , SelectionFlag :: Toggle . into ( ) ) ; self . faction_list_filter . set_filter_case_sensitivity ( CaseSensitivity :: CaseInsensitive ) ; self . faction_list_filter . set_filter_regular_expression_q_string ( & self . faction_list_filter_line_edit . text ( ) ) ; self . faction_list_view . selection_model ( ) . select_q_item_selection_q_flags_selection_flag ( & self . faction_list_view . selection_model ( ) . selection ( ) , SelectionFlag :: Toggle . into ( ) ) ; }
Function to filter the faction list.
Function to filter the faction list .
&self
&self