Make the model struct that emits model signals clonable

master
Jos van den Oever 2018-09-08 23:13:20 +02:00
parent 96376517c6
commit f0eb78457b
5 changed files with 9 additions and 0 deletions

View File

@ -410,6 +410,7 @@ impl FibonacciListEmitter {
}
}
#[derive(Clone)]
pub struct FibonacciListList {
qobject: *const FibonacciListQObject,
layout_about_to_be_changed: fn(*const FibonacciListQObject),
@ -589,6 +590,7 @@ impl FileSystemTreeEmitter {
}
}
#[derive(Clone)]
pub struct FileSystemTreeTree {
qobject: *const FileSystemTreeQObject,
layout_about_to_be_changed: fn(*const FileSystemTreeQObject),
@ -873,6 +875,7 @@ impl ProcessesEmitter {
}
}
#[derive(Clone)]
pub struct ProcessesTree {
qobject: *const ProcessesQObject,
layout_about_to_be_changed: fn(*const ProcessesQObject),
@ -1131,6 +1134,7 @@ impl TimeSeriesEmitter {
}
}
#[derive(Clone)]
pub struct TimeSeriesList {
qobject: *const TimeSeriesQObject,
layout_about_to_be_changed: fn(*const TimeSeriesQObject),

View File

@ -295,6 +295,7 @@ impl %1Emitter {
}
r << QString(R"(}
#[derive(Clone)]
pub struct %1%2 {
qobject: *const %1QObject,
layout_about_to_be_changed: fn(*const %1QObject),

View File

@ -113,6 +113,7 @@ impl NoRoleEmitter {
}
}
#[derive(Clone)]
pub struct NoRoleList {
qobject: *const NoRoleQObject,
layout_about_to_be_changed: fn(*const NoRoleQObject),
@ -312,6 +313,7 @@ impl PersonsEmitter {
}
}
#[derive(Clone)]
pub struct PersonsList {
qobject: *const PersonsQObject,
layout_about_to_be_changed: fn(*const PersonsQObject),

View File

@ -116,6 +116,7 @@ impl ListEmitter {
}
}
#[derive(Clone)]
pub struct ListList {
qobject: *const ListQObject,
layout_about_to_be_changed: fn(*const ListQObject),

View File

@ -113,6 +113,7 @@ impl PersonsEmitter {
}
}
#[derive(Clone)]
pub struct PersonsTree {
qobject: *const PersonsQObject,
layout_about_to_be_changed: fn(*const PersonsQObject),