MCPcopy Create free account
hub / github.com/amsynth/amsynth / getOptionsForComboBoxPopupMenu

Method getOptionsForComboBoxPopupMenu

src/core/gui/MainComponent.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53class LookAndFeel : public juce::LookAndFeel_V4 {
54public:
55 juce::PopupMenu::Options getOptionsForComboBoxPopupMenu(juce::ComboBox& box, juce::Label& label) override {
56 return juce::LookAndFeel_V4::getOptionsForComboBoxPopupMenu(box, label)
57 .withMaximumNumColumns(4)
58 .withMinimumNumColumns(box.getNumItems() == PresetController::kNumPresets ? 4 : 1);
59 }
60
61 // TODO: hide borders around toolbar buttons and combos
62};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected