summary refs log tree commit diff
path: root/src/timeline/EventDelegateChooser.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-07-28 20:05:47 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-08-25 19:03:15 +0200
commit718a58d388abd228c6a08f9fa3365588c06923ba (patch)
treedab9877a7bd16fd291fcd16262d868cf87469c67 /src/timeline/EventDelegateChooser.cpp
parentPort redacted messages (diff)
downloadnheko-718a58d388abd228c6a08f9fa3365588c06923ba.tar.xz
Get rid of redundant constructions and make room implicit
Diffstat (limited to 'src/timeline/EventDelegateChooser.cpp')
-rw-r--r--src/timeline/EventDelegateChooser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/timeline/EventDelegateChooser.cpp b/src/timeline/EventDelegateChooser.cpp

index 5e6ee37e..7fec38dd 100644 --- a/src/timeline/EventDelegateChooser.cpp +++ b/src/timeline/EventDelegateChooser.cpp
@@ -84,7 +84,8 @@ void EventDelegateChooser::componentComplete() { QQuickItem::componentComplete(); - // eventIncubator.reset(eventIndex); + eventIncubator.reset(eventId_); + replyIncubator.reset(replyId); // eventIncubator.forceCompletion(); } @@ -226,6 +227,9 @@ EventDelegateChooser::DelegateIncubator::reset(QString id) for (const auto choice : qAsConst(chooser.choices_)) { const auto &choiceValue = choice->roleValues(); if (choiceValue.contains(role) || choiceValue.empty()) { + nhlog::ui()->debug( + "Instantiating type: {}, c {}", (int)role, choiceValue.contains(role)); + if (auto child = qobject_cast<QQuickItem *>(object())) { child->setParentItem(nullptr); }