From bf8c767232ce7f7fa262683da0184c27e48289b5 Mon Sep 17 00:00:00 2001 From: George Reales Date: Tue, 8 Mar 2022 16:44:05 +0100 Subject: [PATCH] Update PluginEditor.cpp Added optional tooltip display value for XML themes --- Source/PluginEditor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 95c5981..3085ce1 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -117,10 +117,13 @@ void ObxdAudioProcessorEditor::resized() { int d = child->getIntAttribute("d"); int w = child->getIntAttribute("w"); int h = child->getIntAttribute("h"); + bool tooltipEnabled = child->getBoolAttribute("tooltip", false); DBG(" COmponent : " << name); if (mappingComps[name] != nullptr){ - if (dynamic_cast(mappingComps[name])){ - mappingComps[name]->setBounds(transformBounds(x, y, d,d)); + if (auto* knob = dynamic_cast(mappingComps[name])){ + knob->setBounds(transformBounds(x, y, d,d)); + if (!tooltipEnabled) + knob->setPopupDisplayEnabled(false, false, nullptr); } else if (dynamic_cast(mappingComps[name])){ mappingComps[name]->setBounds(transformBounds(x, y, w, h));