Code adjustments

This commit is contained in:
Jacob Støren
2017-11-13 10:49:36 +01:00
parent 612dfd7c9f
commit 9853c15ec6
3 changed files with 27 additions and 7 deletions

View File

@@ -176,6 +176,22 @@ void caf::PdmUiTreeSelectionQModel::setOptions(caf::PdmUiFieldEditorHandle* fiel
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void caf::PdmUiTreeSelectionQModel::setUiValueCache(const QVariant* uiValuesCache)
{
m_uiValueCache = uiValuesCache;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void caf::PdmUiTreeSelectionQModel::resetUiValueCache()
{
m_uiValueCache = nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -69,8 +69,8 @@ public:
int optionItemCount() const;
void setOptions(caf::PdmUiFieldEditorHandle* field, const QList<caf::PdmOptionItemInfo>& options);
void setUiValueCache(const QVariant* uiValuesCache ) {m_uiValueCache = uiValuesCache; }
void resetUiValueCache() { m_uiValueCache = nullptr; }
void setUiValueCache(const QVariant* uiValuesCache );
void resetUiValueCache();
virtual Qt::ItemFlags flags(const QModelIndex &index) const override;
virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;