Removed wxPropertyGridInterface::ClearPropertyValue() (use SetPropertyValue(defaultValue) instead)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -667,8 +667,8 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
|
||||
{
|
||||
//
|
||||
// Clear property value
|
||||
RT_START_TEST(ClearPropertyValue)
|
||||
// Test property default values
|
||||
RT_START_TEST(Default_Values)
|
||||
|
||||
wxPGVIterator it;
|
||||
|
||||
@@ -676,8 +676,8 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
!it.AtEnd();
|
||||
it.Next() )
|
||||
{
|
||||
RT_MSG(wxString::Format(wxT("Clearing value of '%s'"),it.GetProperty()->GetLabel().c_str()));
|
||||
pgman->ClearPropertyValue(it.GetProperty());
|
||||
wxPGProperty* p = it.GetProperty();
|
||||
pgman->SetPropertyValue(p, p->GetDefaultValue());
|
||||
}
|
||||
|
||||
// Recreate grid
|
||||
@@ -1126,28 +1126,6 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
OnColourScheme(evt);
|
||||
}
|
||||
|
||||
{
|
||||
// Test ClearPropertyValue
|
||||
RT_START_TEST(ClearPropertyValue)
|
||||
|
||||
for ( i=0; i<3; i++ )
|
||||
{
|
||||
wxPropertyGridPage* page = pgman->GetPage(i);
|
||||
|
||||
// Iterate over all properties.
|
||||
wxPropertyGridIterator it;
|
||||
|
||||
for ( it = page->GetIterator();
|
||||
!it.AtEnd();
|
||||
it++ )
|
||||
{
|
||||
wxLogDebug((*it)->GetLabel());
|
||||
pgman->ClearPropertyValue( *it );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
RT_START_TEST(ManagerClear)
|
||||
pgman->Clear();
|
||||
|
Reference in New Issue
Block a user