QAbstractListModelBase

Trait QAbstractListModelBase 

Source
pub trait QAbstractListModelBase: QObjectHolder<ProxyRust = QAbstractListModelProxyRust> {
Show 14 methods // Provided methods fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex { ... } fn role_names(&self) -> QHash<i32, QByteArray> { ... } fn set_data( &mut self, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool { ... } fn remove_rows( &mut self, first: i32, count: i32, parent: &QModelIndex, ) -> bool { ... } fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex { ... } fn data_changed( &mut self, top_left: &QModelIndex, bottom_right: &QModelIndex, ) { ... } fn begin_insert_rows(&mut self, parent: &QModelIndex, first: i32, last: i32) { ... } fn end_insert_rows(&mut self) { ... } fn begin_move_rows( &mut self, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, ) { ... } fn end_move_rows(&mut self) { ... } fn begin_remove_rows(&mut self, parent: &QModelIndex, first: i32, last: i32) { ... } fn end_remove_rows(&mut self) { ... } fn begin_reset_model(&mut self) { ... } fn end_reset_model(&mut self) { ... }
}

Provided Methods§

Source

fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex

Source

fn role_names(&self) -> QHash<i32, QByteArray>

Source

fn set_data(&mut self, index: &QModelIndex, value: &QVariant, role: i32) -> bool

Source

fn remove_rows(&mut self, first: i32, count: i32, parent: &QModelIndex) -> bool

Source

fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex

Source

fn data_changed(&mut self, top_left: &QModelIndex, bottom_right: &QModelIndex)

Source

fn begin_insert_rows(&mut self, parent: &QModelIndex, first: i32, last: i32)

Source

fn end_insert_rows(&mut self)

Source

fn begin_move_rows( &mut self, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

fn end_move_rows(&mut self)

Source

fn begin_remove_rows(&mut self, parent: &QModelIndex, first: i32, last: i32)

Source

fn end_remove_rows(&mut self)

Source

fn begin_reset_model(&mut self)

Source

fn end_reset_model(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§