From 7952cc0a87087a11067e9358d70f5c425542bfe8 Mon Sep 17 00:00:00 2001 From: august-alt <77973983+august-alt@users.noreply.github.com> Date: Fri, 30 Jul 2021 14:54:09 +0400 Subject: [PATCH] feat: add policy pointer to standard model item --- src/model/bundle/policybundle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/model/bundle/policybundle.cpp b/src/model/bundle/policybundle.cpp index 57ec265..c5a5c73 100644 --- a/src/model/bundle/policybundle.cpp +++ b/src/model/bundle/policybundle.cpp @@ -276,6 +276,8 @@ bool PolicyBundle::loadAdmxAndAdml(const QFileInfo& admxFileName, const std::str } } + policyItem->setData(QVariant::fromValue(policy), Qt::UserRole + 6); + d->unassignedItems.push_back(container); } } @@ -394,3 +396,4 @@ void PolicyBundle::assignSupportedOn() } Q_DECLARE_METATYPE(std::shared_ptr<::model::presentation::Presentation>) +Q_DECLARE_METATYPE(std::shared_ptr<::model::admx::Policy>)