pub struct QPersistentModelIndex { /* private fields */ }Expand description
C++ class: QPersistentModelIndex.
Implementations§
Source§impl QPersistentModelIndex
impl QPersistentModelIndex
Sourcepub unsafe fn child(&self, row: c_int, column: c_int) -> CppBox<QModelIndex>
pub unsafe fn child(&self, row: c_int, column: c_int) -> CppBox<QModelIndex>
Calls C++ function: QModelIndex QPersistentModelIndex::child(int row, int column) const.
Sourcepub unsafe fn column(&self) -> c_int
pub unsafe fn column(&self) -> c_int
Calls C++ function: int QPersistentModelIndex::column() const.
Sourcepub unsafe fn copy_from_q_persistent_model_index(
&self,
other: impl CastInto<Ref<QPersistentModelIndex>>,
) -> Ref<QPersistentModelIndex>
pub unsafe fn copy_from_q_persistent_model_index( &self, other: impl CastInto<Ref<QPersistentModelIndex>>, ) -> Ref<QPersistentModelIndex>
Calls C++ function: QPersistentModelIndex& QPersistentModelIndex::operator=(const QPersistentModelIndex& other).
Sourcepub unsafe fn copy_from_q_model_index(
&self,
other: impl CastInto<Ref<QModelIndex>>,
) -> Ref<QPersistentModelIndex>
pub unsafe fn copy_from_q_model_index( &self, other: impl CastInto<Ref<QModelIndex>>, ) -> Ref<QPersistentModelIndex>
Calls C++ function: QPersistentModelIndex& QPersistentModelIndex::operator=(const QModelIndex& other).
Sourcepub unsafe fn data_1a(&self, role: c_int) -> CppBox<QVariant>
pub unsafe fn data_1a(&self, role: c_int) -> CppBox<QVariant>
Calls C++ function: QVariant QPersistentModelIndex::data(int role = …) const.
Sourcepub unsafe fn data_0a(&self) -> CppBox<QVariant>
pub unsafe fn data_0a(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QPersistentModelIndex::data() const.
Sourcepub unsafe fn flags(&self) -> QFlags<ItemFlag>
pub unsafe fn flags(&self) -> QFlags<ItemFlag>
Calls C++ function: QFlags<Qt::ItemFlag> QPersistentModelIndex::flags() const.
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QPersistentModelIndex::isValid() const.
Sourcepub unsafe fn model(&self) -> QPtr<QAbstractItemModel>
pub unsafe fn model(&self) -> QPtr<QAbstractItemModel>
Calls C++ function: const QAbstractItemModel* QPersistentModelIndex::model() const.
Sourcepub unsafe fn new_0a() -> CppBox<QPersistentModelIndex>
pub unsafe fn new_0a() -> CppBox<QPersistentModelIndex>
Calls C++ function: [constructor] void QPersistentModelIndex::QPersistentModelIndex().
Sourcepub unsafe fn new_1a(
index: impl CastInto<Ref<QModelIndex>>,
) -> CppBox<QPersistentModelIndex>
pub unsafe fn new_1a( index: impl CastInto<Ref<QModelIndex>>, ) -> CppBox<QPersistentModelIndex>
Calls C++ function: [constructor] void QPersistentModelIndex::QPersistentModelIndex(const QModelIndex& index).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QPersistentModelIndex>>,
) -> CppBox<QPersistentModelIndex>
pub unsafe fn new_copy( other: impl CastInto<Ref<QPersistentModelIndex>>, ) -> CppBox<QPersistentModelIndex>
Calls C++ function: [constructor] void QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex& other).
Sourcepub unsafe fn parent(&self) -> CppBox<QModelIndex>
pub unsafe fn parent(&self) -> CppBox<QModelIndex>
Calls C++ function: QModelIndex QPersistentModelIndex::parent() const.
Sourcepub unsafe fn sibling(&self, row: c_int, column: c_int) -> CppBox<QModelIndex>
pub unsafe fn sibling(&self, row: c_int, column: c_int) -> CppBox<QModelIndex>
Calls C++ function: QModelIndex QPersistentModelIndex::sibling(int row, int column) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QPersistentModelIndex>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QPersistentModelIndex>>)
Calls C++ function: void QPersistentModelIndex::swap(QPersistentModelIndex& other).
Sourcepub unsafe fn to_q_model_index(&self) -> Ref<QModelIndex>
pub unsafe fn to_q_model_index(&self) -> Ref<QModelIndex>
Calls C++ function: const QModelIndex& QPersistentModelIndex::operator QModelIndex const &() const.