From f5c03e7518130ff6818747dcd5c38232f6bb3018 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 13 Mar 2017 07:39:36 +0100 Subject: [PATCH] AppFwk : Added field used to test multi selection --- Fwk/AppFwk/cafTests/cafTestApplication/MainWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Fwk/AppFwk/cafTests/cafTestApplication/MainWindow.cpp b/Fwk/AppFwk/cafTests/cafTestApplication/MainWindow.cpp index 35a053a93a..8c38ff6ea9 100644 --- a/Fwk/AppFwk/cafTests/cafTestApplication/MainWindow.cpp +++ b/Fwk/AppFwk/cafTests/cafTestApplication/MainWindow.cpp @@ -69,6 +69,10 @@ public: m_proxyDoubleField = 0; if (!(m_proxyDoubleField == 3)) { std::cout << "Double is not 3 " << std::endl; } + CAF_PDM_InitFieldNoDefault(&m_multiSelectList, "SelectedItems", " ", "", "", ""); + m_multiSelectList.xmlCapability()->setIOReadable(false); + m_multiSelectList.xmlCapability()->setIOWritable(false); + m_multiSelectList.uiCapability()->setUiEditorTypeName(caf::PdmUiListEditor::uiEditorTypeName()); } @@ -77,6 +81,9 @@ public: caf::PdmField m_textField; caf::PdmProxyValueField m_proxyDoubleField; + caf::PdmField > m_multiSelectList; + + caf::PdmField m_toggleField; virtual caf::PdmFieldHandle* objectToggleField() {