pub fn insert_row<T>(&mut self, index: usize ,qvars: T)
        where T: Iterator<Item = QVariant>
    {
        unsafe {
            let parent = QModelIndex::new();
            dos_qabstractlistmodel_beginInsertRows(self.wrapped.load(Ordering::Relaxed),
                                                   get_model_ptr(&parent),
                                                   index as i32,
                                                   index as i32);
            self.model.insert(index,qvars.collect());
            dos_qabstractlistmodel_endInsertRows(self.wrapped.load(Ordering::Relaxed));
        }
    }
/// Inserts a row into model
///
/// Note that it clones all incoming qvariants as modifying them is not allowed.
Inserts a row into model
Note that it clones all incoming qvariants as modifying them is not allowed.
Inserts a row into model Note that it clones all incoming qvariants as modifying them is not allowed .
pub fn insert_row<T>(&mut self, index: usize ,qvars: T)
        where T: Iterator<Item = QVariant>
    {
        unsafe {
            let parent = QModelIndex::new();
            dos_qabstractlistmodel_beginInsertRows(self.wrapped.load(Ordering::Relaxed),
                                                   get_model_ptr(&parent),
                                                   index as i32,
                                                   index as i32);
            self.model.insert(index,qvars.collect());
            dos_qabstractlistmodel_endInsertRows(self.wrapped.load(Ordering::Relaxed));
        }
    }
pub fn insert_row < T > ( & mut self , index : usize , qvars : T ) where T : Iterator < Item = QVariant > { unsafe { let parent = QModelIndex :: new ( ) ; dos_qabstractlistmodel_beginInsertRows ( self . wrapped . load ( Ordering :: Relaxed ) , get_model_ptr ( & parent ) , index as i32 , index as i32 ) ; self . model . insert ( index , qvars . collect ( ) ) ; dos_qabstractlistmodel_endInsertRows ( self . wrapped . load ( Ordering :: Relaxed ) ) ; } }
Inserts a row into model
Note that it clones all incoming qvariants as modifying them is not allowed.
Inserts a row into model Note that it clones all incoming qvariants as modifying them is not allowed .
&mut self
index
usize
qvars
T
&mut self
index
usize
qvars
T