use wxHeaderColumnSimple instead of wxHeaderColumn

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-07 15:58:59 +00:00
parent e2bfe6731e
commit a1d4adc5ce

View File

@@ -79,13 +79,13 @@ void HeaderCtrlTestCase::AddDelete()
{ {
CPPUNIT_ASSERT_EQUAL( 0, m_header->GetColumnCount() ); CPPUNIT_ASSERT_EQUAL( 0, m_header->GetColumnCount() );
m_header->AppendColumn(wxHeaderColumn("Column 1")); m_header->AppendColumn(wxHeaderColumnSimple("Column 1"));
CPPUNIT_ASSERT_EQUAL( 1, m_header->GetColumnCount() ); CPPUNIT_ASSERT_EQUAL( 1, m_header->GetColumnCount() );
m_header->AppendColumn(wxHeaderColumn("Column 2")); m_header->AppendColumn(wxHeaderColumnSimple("Column 2"));
CPPUNIT_ASSERT_EQUAL( 2, m_header->GetColumnCount() ); CPPUNIT_ASSERT_EQUAL( 2, m_header->GetColumnCount() );
m_header->InsertColumn(wxHeaderColumn("Column 0"), 0); m_header->InsertColumn(wxHeaderColumnSimple("Column 0"), 0);
CPPUNIT_ASSERT_EQUAL( 3, m_header->GetColumnCount() ); CPPUNIT_ASSERT_EQUAL( 3, m_header->GetColumnCount() );
m_header->DeleteColumn(2); m_header->DeleteColumn(2);
@@ -98,8 +98,8 @@ void HeaderCtrlTestCase::BestSize()
CPPUNIT_ASSERT( sizeEmpty.x > 0 ); CPPUNIT_ASSERT( sizeEmpty.x > 0 );
CPPUNIT_ASSERT( sizeEmpty.y > 0 ); CPPUNIT_ASSERT( sizeEmpty.y > 0 );
m_header->AppendColumn(wxHeaderColumn("Foo")); m_header->AppendColumn(wxHeaderColumnSimple("Foo"));
m_header->AppendColumn(wxHeaderColumn("Bar")); m_header->AppendColumn(wxHeaderColumnSimple("Bar"));
const wxSize size = m_header->GetBestSize(); const wxSize size = m_header->GetBestSize();
CPPUNIT_ASSERT_EQUAL( sizeEmpty.y, size.y ); CPPUNIT_ASSERT_EQUAL( sizeEmpty.y, size.y );
} }