mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
Apply changes.
This commit is contained in:
parent
43bf6cebed
commit
4239748047
1 changed files with 31 additions and 1 deletions
|
@ -73,7 +73,7 @@ void TypBrowserCtrl::load()
|
||||||
vp->setValue( m_typ->Min.c_str() );
|
vp->setValue( m_typ->Min.c_str() );
|
||||||
m_browser->addProperty( vp );
|
m_browser->addProperty( vp );
|
||||||
|
|
||||||
vp = m_variantMgr->addProperty( QVariant::String, "Max" );
|
vp = m_variantMgr->addProperty( QVariant::String, "max" );
|
||||||
vp->setValue( m_typ->Max.c_str() );
|
vp->setValue( m_typ->Max.c_str() );
|
||||||
m_browser->addProperty( vp );
|
m_browser->addProperty( vp );
|
||||||
|
|
||||||
|
@ -86,10 +86,40 @@ void TypBrowserCtrl::load()
|
||||||
|
|
||||||
void TypBrowserCtrl::onVariantValueChanged( QtProperty *p, const QVariant &v )
|
void TypBrowserCtrl::onVariantValueChanged( QtProperty *p, const QVariant &v )
|
||||||
{
|
{
|
||||||
|
QString n = p->propertyName();
|
||||||
|
if( n == "default" )
|
||||||
|
{
|
||||||
|
m_typ->Default = v.toString().toUtf8().constData();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( n == "min" )
|
||||||
|
{
|
||||||
|
m_typ->Min = v.toString().toUtf8().constData();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( n == "max" )
|
||||||
|
{
|
||||||
|
m_typ->Max = v.toString().toUtf8().constData();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( n == "increment" )
|
||||||
|
{
|
||||||
|
m_typ->Increment = v.toString().toUtf8().constData();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TypBrowserCtrl::onEnumValueChanged( QtProperty *p, int v )
|
void TypBrowserCtrl::onEnumValueChanged( QtProperty *p, int v )
|
||||||
{
|
{
|
||||||
|
QString n = p->propertyName();
|
||||||
|
if( n == "type" )
|
||||||
|
{
|
||||||
|
m_typ->Type = NLGEORGES::UType::TType( v );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( n == "uitype" )
|
||||||
|
{
|
||||||
|
m_typ->UIType = NLGEORGES::CType::TUI( v );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TypBrowserCtrl::enableMgrConnections()
|
void TypBrowserCtrl::enableMgrConnections()
|
||||||
|
|
Loading…
Reference in a new issue