From e78e9eeb2cd3f3aab506872e19921b020056d7f1 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 11 Dec 2015 12:48:11 -0300 Subject: [PATCH] Add PopupWindow::setClick/EnterBehavior() member functions --- src/ui/popup_window.cpp | 10 ++++++++++ src/ui/popup_window.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/ui/popup_window.cpp b/src/ui/popup_window.cpp index 8f5025dbe..22c71c3a6 100644 --- a/src/ui/popup_window.cpp +++ b/src/ui/popup_window.cpp @@ -54,6 +54,16 @@ void PopupWindow::setHotRegion(const gfx::Region& region) m_hotRegion = region; } +void PopupWindow::setClickBehavior(ClickBehavior behavior) +{ + m_clickBehavior = behavior; +} + +void PopupWindow::setEnterBehavior(EnterBehavior behavior) +{ + m_enterBehavior = behavior; +} + void PopupWindow::makeFloating() { stopFilteringMessages(); diff --git a/src/ui/popup_window.h b/src/ui/popup_window.h index b2104d501..b60a5fa4d 100644 --- a/src/ui/popup_window.h +++ b/src/ui/popup_window.h @@ -31,6 +31,8 @@ namespace ui { ~PopupWindow(); void setHotRegion(const gfx::Region& region); + void setClickBehavior(ClickBehavior behavior); + void setEnterBehavior(EnterBehavior behavior); void makeFloating(); void makeFixed();