Removed wxPGProperty:GetArrIndex() in favor of GetIndexInParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -1605,8 +1605,6 @@ public:
 | 
			
		||||
    */
 | 
			
		||||
    double GetAttributeAsDouble( const wxString& name, double defVal ) const;
 | 
			
		||||
 | 
			
		||||
    unsigned int GetArrIndex() const { return m_arrIndex; }
 | 
			
		||||
 | 
			
		||||
    unsigned int GetDepth() const { return (unsigned int)m_depth; }
 | 
			
		||||
 | 
			
		||||
    /** Gets flags as a'|' delimited string. Note that flag names are not
 | 
			
		||||
 
 | 
			
		||||
@@ -1953,7 +1953,7 @@ void wxPGProperty::PrepareSubProperties()
 | 
			
		||||
 | 
			
		||||
            depth--;
 | 
			
		||||
 | 
			
		||||
            i = nparent->GetArrIndex() + 1;
 | 
			
		||||
            i = nparent->GetIndexInParent() + 1;
 | 
			
		||||
            nparent = nparent->GetParent();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -290,7 +290,7 @@ wxPGProperty* wxPropertyGridInterface::AppendIn( wxPGPropArg id, wxPGProperty* n
 | 
			
		||||
wxPGProperty* wxPropertyGridInterface::Insert( wxPGPropArg id, wxPGProperty* property )
 | 
			
		||||
{
 | 
			
		||||
    wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxNullProperty)
 | 
			
		||||
    wxPGProperty* retp = m_pState->DoInsert(p->GetParent(), p->GetArrIndex(), property);
 | 
			
		||||
    wxPGProperty* retp = m_pState->DoInsert(p->GetParent(), p->GetIndexInParent(), property);
 | 
			
		||||
    RefreshGrid();
 | 
			
		||||
    return retp;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1226,7 +1226,7 @@ void wxFlagsProperty::Init()
 | 
			
		||||
            if ( selected )
 | 
			
		||||
            {
 | 
			
		||||
                if ( selected->GetParent() == this )
 | 
			
		||||
                    oldSel = selected->GetArrIndex();
 | 
			
		||||
                    oldSel = selected->GetIndexInParent();
 | 
			
		||||
                else if ( selected == this )
 | 
			
		||||
                    oldSel = -2;
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user