Make recently added wxRibbonPage::GetPanelCount() const
Closes #24333. Closes #24334.
This commit is contained in:
parent
63a40637eb
commit
7150e6ecb3
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ public:
|
||||||
|
|
||||||
wxRibbonPanel* GetPanel(int n);
|
wxRibbonPanel* GetPanel(int n);
|
||||||
wxRibbonPanel* GetPanelById(wxWindowID id);
|
wxRibbonPanel* GetPanelById(wxWindowID id);
|
||||||
size_t GetPanelCount();
|
size_t GetPanelCount() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const override;
|
virtual wxSize DoGetBestSize() const override;
|
||||||
|
|
|
||||||
|
|
@ -1137,7 +1137,7 @@ wxRibbonPanel* wxRibbonPage::GetPanelById(wxWindowID id)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t wxRibbonPage::GetPanelCount()
|
size_t wxRibbonPage::GetPanelCount() const
|
||||||
{
|
{
|
||||||
size_t panelCount = 0;
|
size_t panelCount = 0;
|
||||||
for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
|
for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue