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