Minor editor fixes
This commit is contained in:
parent
a3f3274204
commit
ad751011ca
3 changed files with 4 additions and 4 deletions
|
|
@ -236,9 +236,9 @@ CMouseEventResult SAboutDialog::onMouseDown(CPoint& where, const CButtonState& b
|
|||
}
|
||||
|
||||
#if VSTGUI_MORE_THAN_4_10
|
||||
void SAboutDialog::onKeyboardEvent (KeyboardEvent& event, CFrame* frame)
|
||||
void SAboutDialog::onKeyboardEvent(KeyboardEvent& event, CFrame* frame)
|
||||
{
|
||||
auto vstKeyCode = toVstKeyCode (event);
|
||||
auto vstKeyCode = toVstKeyCode(event);
|
||||
if (event.type == EventType::KeyDown && vstKeyCode.virt == VKEY_ESCAPE)
|
||||
{
|
||||
setVisible(false);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public:
|
|||
void setPluginHost(const std::string& pluginHost);
|
||||
|
||||
#if VSTGUI_MORE_THAN_4_10
|
||||
void onKeyboardEvent (KeyboardEvent& event, CFrame* frame) override;
|
||||
void onKeyboardEvent(KeyboardEvent&, CFrame*);
|
||||
#else
|
||||
int32_t onKeyDown(const VstKeyCode& code, CFrame* frame) override;
|
||||
int32_t onKeyUp(const VstKeyCode& code, CFrame* frame) override;
|
||||
|
|
|
|||
|
|
@ -929,7 +929,7 @@ void Editor::Impl::createFrameContents()
|
|||
cb->setRoundRectRadius(5.0);
|
||||
return cb;
|
||||
};
|
||||
auto createHoverBox = [this, &palette](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) {
|
||||
auto createHoverBox = [](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) {
|
||||
CTextLabel* lbl = new CTextLabel(bounds, label);
|
||||
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||
#if 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue