Browse Source

ComboBox: Add const getter for root menu

tags/2021-05-28
reuk 5 years ago
parent
commit
37c2dbe547
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_basics/widgets/juce_ComboBox.h

+ 4
- 1
modules/juce_gui_basics/widgets/juce_ComboBox.h View File

@@ -272,7 +272,10 @@ public:
/** Returns the PopupMenu object associated with the ComboBox. /** Returns the PopupMenu object associated with the ComboBox.
Can be useful for adding sub-menus to the ComboBox standard PopupMenu Can be useful for adding sub-menus to the ComboBox standard PopupMenu
*/ */
PopupMenu* getRootMenu() { return &currentMenu; }
PopupMenu* getRootMenu() noexcept { return &currentMenu; }
/** Returns the PopupMenu object associated with the ComboBox. */
const PopupMenu* getRootMenu() const noexcept { return &currentMenu; }
//============================================================================== //==============================================================================
/** /**


Loading…
Cancel
Save