Revert "attempting to switch to new version of cxx-qt to try newer api"
This reverts commit 5163a39317
This commit is contained in:
parent
61440147b1
commit
9a08c6630c
6 changed files with 162 additions and 171 deletions
|
@ -24,13 +24,6 @@ mod service_item_model {
|
|||
type QUrl = cxx_qt_lib::QUrl;
|
||||
}
|
||||
|
||||
// extern "RustQt" {
|
||||
// #[qobject]
|
||||
// #[base = "QAbstractListModel"]
|
||||
// #[qml_element]
|
||||
// type ServiceItemModel = super::ServiceItemMod;
|
||||
// }
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
#[cxx_qt::qobject]
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -1137,6 +1130,15 @@ mod service_item_model {
|
|||
);
|
||||
|
||||
// cxx-qt can't build this function for some reason
|
||||
// unsafe fn begin_move_rows(
|
||||
// self: Pin<&mut qobject::ServiceItemMod>,
|
||||
// source_parent: &QModelIndex,
|
||||
// source_first: i32,
|
||||
// source_last: i32,
|
||||
// destination_parent: &QModelIndex,
|
||||
// destination_child: i32,
|
||||
// );
|
||||
|
||||
unsafe fn end_move_rows(
|
||||
self: Pin<&mut qobject::ServiceItemMod>,
|
||||
);
|
||||
|
@ -1167,17 +1169,6 @@ mod service_item_model {
|
|||
parent: &QModelIndex,
|
||||
) -> bool;
|
||||
|
||||
#[cxx_name = "beginMoveRows"]
|
||||
fn begin_move_rows(
|
||||
self: Pin<&mut qobject::ServiceItemMod>,
|
||||
#[cxx_name = "sourceParent"] source_parent: &QModelIndex,
|
||||
#[cxx_name = "sourceFirst"] source_first: i32,
|
||||
#[cxx_name = "sourceLast"] source_last: i32,
|
||||
#[cxx_name = "destinationParent"]
|
||||
destination_parent: &QModelIndex,
|
||||
#[cxx_name = "desitnationChild"] destination_child: i32,
|
||||
);
|
||||
|
||||
fn index(
|
||||
self: &qobject::ServiceItemMod,
|
||||
row: i32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue