]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.cpp
Add virtual bool Inset::clickable(..) to be used to change the cursor.
[features.git] / src / insets / InsetCollapsable.cpp
index 48ae8a8df02eb11de1fed717e3b966d4952c9b52..b57b74b341fb0a7e2e5a261044a8a931b0df62c6 100644 (file)
@@ -411,6 +411,13 @@ bool InsetCollapsable::hitButton(FuncRequest const & cmd) const
 }
 
 
+bool InsetCollapsable::clickable(int x, int y) const
+{
+       FuncRequest cmd(LFUN_NOACTION, x, y, mouse_button::none);
+       return hitButton(cmd);
+}
+
+
 docstring const InsetCollapsable::getNewLabel(docstring const & l) const
 {
        docstring label;