Skip to content

Commit

Permalink
Revert "Remove Lv2ViewProc::leaveEvent"
Browse files Browse the repository at this point in the history
This reverts commit 3862929.
  • Loading branch information
JohannesLorenz committed May 23, 2020
1 parent d282952 commit 756b84e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/Lv2ViewBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Lv2ViewProc : public LinkedModelGroupView
~Lv2ViewProc();

private:
void leaveEvent(class QEvent *) override;
static AutoLilvNode uri(const char *uriStr);
};

Expand Down
11 changes: 11 additions & 0 deletions src/gui/Lv2ViewBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ Lv2ViewProc::~Lv2ViewProc() {}



void Lv2ViewProc::leaveEvent(QEvent *)
{
if(!rect().contains(mapFromGlobal(QCursor::pos())))
{
removeFocusFromSearchBar();
}
}




AutoLilvNode Lv2ViewProc::uri(const char *uriStr)
{
return Engine::getLv2Manager()->uri(uriStr);
Expand Down

0 comments on commit 756b84e

Please sign in to comment.