Ok, so we don't need the extra bool at all, we can just zero the sizer
pointer in wxSizerItem. :-) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,6 +50,10 @@ public:
|
||||
|
||||
virtual void DeleteWindows();
|
||||
|
||||
// Enable deleting the SizerItem without destroying the contained sizer.
|
||||
void DetachSizer()
|
||||
{ m_sizer = 0; }
|
||||
|
||||
virtual wxSize GetSize();
|
||||
virtual wxSize CalcMin();
|
||||
virtual void SetDimension( wxPoint pos, wxSize size );
|
||||
@@ -82,8 +86,6 @@ public:
|
||||
{ m_border = border; }
|
||||
void Show ( bool show )
|
||||
{ m_show = show; }
|
||||
void SetDeleteItem( bool deleteItem = TRUE )
|
||||
{ m_deleteItem = deleteItem; }
|
||||
|
||||
wxWindow *GetWindow() const
|
||||
{ return m_window; }
|
||||
@@ -124,11 +126,6 @@ protected:
|
||||
// is shrinked. it is safer to preserve initial value.
|
||||
float m_ratio;
|
||||
|
||||
// If TRUE, and the item is a sizer, delete it when the
|
||||
// sizeritem is destroyed. Not used for any other type
|
||||
// of item right now.
|
||||
bool m_deleteItem;
|
||||
|
||||
wxObject *m_userData;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user