Added option to hide spin box for sliders.

This commit is contained in:
Ruben Thoms
2020-12-07 16:41:14 +01:00
committed by Magne Sjaastad
parent a2ca399dfa
commit c6e10c9c5d
2 changed files with 8 additions and 4 deletions

View File

@@ -55,13 +55,15 @@ class PdmUiSliderEditorAttribute : public PdmUiEditorAttribute
public:
PdmUiSliderEditorAttribute()
{
m_minimum = 0;
m_maximum = 10;
m_minimum = 0;
m_maximum = 10;
m_showSpinBox = true;
}
public:
int m_minimum;
int m_maximum;
int m_minimum;
int m_maximum;
bool m_showSpinBox;
};
class PdmUiSliderEditor : public PdmUiFieldEditorHandle