From c2b1db42ccae3b34d12c4495772b8b297dabb6b6 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 9 Nov 2015 14:27:32 -0500 Subject: [PATCH] getChildren works with Classifiers now --- openbr/openbr_plugin.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 2b9990d..67783b3 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -971,6 +971,17 @@ QList Object::getChildren() const output.append((Object *) dist); } } + else if (variant.canConvert()) { + Classifier *classifier = variant.value(); + if (classifier) + output.append((Object* ) variant.value()); + } + else if (variant.canConvert >()) { + foreach (const Classifier *classifier, variant.value >()) { + if (classifier) + output.append((Object *) classifier); + } + } } return output; } -- libgit2 0.21.4