mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 07:16:15 +00:00
Use the string 'array size' as the name for the property holding the array size.
This commit is contained in:
parent
408e050ce2
commit
d5dec4a681
1 changed files with 4 additions and 5 deletions
|
@ -76,11 +76,7 @@ public:
|
||||||
uint size = 0;
|
uint size = 0;
|
||||||
arr->getArraySize( size );
|
arr->getArraySize( size );
|
||||||
|
|
||||||
std::string name;
|
QString key = QObject::tr( "Array size" );
|
||||||
arr->getFormName( name, NULL );
|
|
||||||
QString key = name.c_str();
|
|
||||||
key = key.mid( 1 );
|
|
||||||
|
|
||||||
QtVariantProperty *p = mgr->addProperty( QVariant::Int, key );
|
QtVariantProperty *p = mgr->addProperty( QVariant::Int, key );
|
||||||
p->setValue( size );
|
p->setValue( size );
|
||||||
m_browser->addProperty( p );
|
m_browser->addProperty( p );
|
||||||
|
@ -144,6 +140,9 @@ public:
|
||||||
|
|
||||||
void onArrayValueChanged( QtProperty *p, const QVariant &value )
|
void onArrayValueChanged( QtProperty *p, const QVariant &value )
|
||||||
{
|
{
|
||||||
|
NLGEORGES::CFormElmArray *arr = static_cast< NLGEORGES::CFormElmArray* >( m_currentNode );
|
||||||
|
std::string formName;
|
||||||
|
arr->getFormName( formName, NULL );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue