mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
all: ensure QObject ownership is Cpp when required
This commit is contained in:
parent
de8668eff3
commit
6966fc025c
4 changed files with 10 additions and 3 deletions
|
|
@ -104,6 +104,8 @@ void Variants::updateVariants() {
|
|||
continue;
|
||||
}
|
||||
|
||||
QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
|
||||
|
||||
instance->setParent(this);
|
||||
this->instances.insert(variant, instance);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue