From 6ec07d5e10f7aeedaa85e60bc5d59217889bbe9a Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 17 Dec 2015 15:46:13 -0300 Subject: [PATCH] Fix comment for ui::PopupWindow::setHotRegion() member function --- src/ui/popup_window.cpp | 4 ---- src/ui/popup_window.h | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/popup_window.cpp b/src/ui/popup_window.cpp index f993e6491..c8938bbc2 100644 --- a/src/ui/popup_window.cpp +++ b/src/ui/popup_window.cpp @@ -43,10 +43,6 @@ PopupWindow::~PopupWindow() stopFilteringMessages(); } -/** - * @param region The new hot-region. This pointer is holded by the @a widget. - * So you cannot destroy it after calling this routine. - */ void PopupWindow::setHotRegion(const gfx::Region& region) { startFilteringMessages(); diff --git a/src/ui/popup_window.h b/src/ui/popup_window.h index b60a5fa4d..1b3750774 100644 --- a/src/ui/popup_window.h +++ b/src/ui/popup_window.h @@ -30,6 +30,8 @@ namespace ui { EnterBehavior enterBehavior = EnterBehavior::CloseOnEnter); ~PopupWindow(); + // Sets the hot region. This region indicates the area where the + // mouse can be located and the window will be kept open. void setHotRegion(const gfx::Region& region); void setClickBehavior(ClickBehavior behavior); void setEnterBehavior(EnterBehavior behavior);