pub unsafe fn clear_markings(&self) {
        let table_view = self.get_mut_ptr_table_view_primary();
        let table_filter: QPtr<QSortFilterProxyModel> = table_view.model().static_downcast();
        let table_model: QPtr<QStandardItemModel> = table_filter.source_model().static_downcast();
        let blocker = QSignalBlocker::from_q_object(table_model.static_upcast::<QObject>());

        for row in 0..table_model.row_count_0a() {
            for column in 0..table_model.column_count_0a() {
                let item = table_model.item_2a(row, column);

                if item.data_1a(ITEM_IS_ADDED).to_bool() {
                    item.set_data_2a(&QVariant::from_bool(false), ITEM_IS_ADDED);
                }

                if item.data_1a(ITEM_IS_MODIFIED).to_bool() {
                    item.set_data_2a(&QVariant::from_bool(false), ITEM_IS_MODIFIED);
                }
            }
        }
        blocker.unblock();
        table_view.viewport().repaint();
    }
/// This function clears the markings for added/modified cells.
This function clears the markings for added/modified cells.
This function clears the markings for added / modified cells .
pub unsafe fn clear_markings(&self) {
        let table_view = self.get_mut_ptr_table_view_primary();
        let table_filter: QPtr<QSortFilterProxyModel> = table_view.model().static_downcast();
        let table_model: QPtr<QStandardItemModel> = table_filter.source_model().static_downcast();
        let blocker = QSignalBlocker::from_q_object(table_model.static_upcast::<QObject>());
        for row in 0..table_model.row_count_0a() {
            for column in 0..table_model.column_count_0a() {
                let item = table_model.item_2a(row, column);
                if item.data_1a(ITEM_IS_ADDED).to_bool() {
                    item.set_data_2a(&QVariant::from_bool(false), ITEM_IS_ADDED);
                }
                if item.data_1a(ITEM_IS_MODIFIED).to_bool() {
                    item.set_data_2a(&QVariant::from_bool(false), ITEM_IS_MODIFIED);
                }
            }
        }
        blocker.unblock();
        table_view.viewport().repaint();
    }
pub unsafe fn clear_markings ( & self ) { let table_view = self . get_mut_ptr_table_view_primary ( ) ; let table_filter : QPtr < QSortFilterProxyModel > = table_view . model ( ) . static_downcast ( ) ; let table_model : QPtr < QStandardItemModel > = table_filter . source_model ( ) . static_downcast ( ) ; let blocker = QSignalBlocker :: from_q_object ( table_model . static_upcast :: < QObject > ( ) ) ; for row in 0 .. table_model . row_count_0a ( ) { for column in 0 .. table_model . column_count_0a ( ) { let item = table_model . item_2a ( row , column ) ; if item . data_1a ( ITEM_IS_ADDED ) . to_bool ( ) { item . set_data_2a ( & QVariant :: from_bool ( false ) , ITEM_IS_ADDED ) ; } if item . data_1a ( ITEM_IS_MODIFIED ) . to_bool ( ) { item . set_data_2a ( & QVariant :: from_bool ( false ) , ITEM_IS_MODIFIED ) ; } } } blocker . unblock ( ) ; table_view . viewport ( ) . repaint ( ) ; }
This function clears the markings for added/modified cells.
This function clears the markings for added / modified cells .
&self
&self