Reuse code between wxListBox::Create() overloads

Add DoCreate() helper to actually create and initialize QListWidget.
This commit is contained in:
Vadim Zeitlin
2019-01-21 23:43:03 +01:00
parent a2356fbe4a
commit c8f427181e
2 changed files with 12 additions and 10 deletions

View File

@@ -90,7 +90,9 @@ protected:
private:
virtual void Init(); //common construction
void setStyle(long style);
// Common part of both Create() overloads.
void DoCreate(wxWindow* parent, long style);
void UnSelectAll();
wxDECLARE_DYNAMIC_CLASS(wxListBox);