Caf: Added asserts to make it clearer that "useOptionsOnly" == false is unsupported yet.

This commit is contained in:
Jacob Støren
2017-02-09 13:15:36 +01:00
parent 5df94a1e18
commit 2ccabc4589
5 changed files with 12 additions and 8 deletions

View File

@@ -77,12 +77,10 @@ void PdmUiComboBoxEditor::configureAndUpdateUi(const QString& uiConfigName)
{
m_comboBox->setEnabled(!field()->isUiReadOnly(uiConfigName));
// Demo code for attribute retreival when becoming relevant
// PdmUiComboBoxEditorAttribute attributes;
// field()->ownerObject()->editorAttribute(field(), uiConfigName, &attributes);
bool fromMenuOnly = false;
bool fromMenuOnly = true;
QList<PdmOptionItemInfo> options = field()->valueOptions(&fromMenuOnly);
assert(fromMenuOnly); // Not supported
m_comboBox->blockSignals(true);
m_comboBox->clear();
if (!options.isEmpty())