From 5fba7ebf5c465b218b650141eab28c27cc19c79e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 27 Aug 2015 14:48:36 +0100 Subject: vcldemo: quit popup on mouse click. Change-Id: I0fc1967d3863723b0c8e3e082fac19cc49aba345 --- vcl/workben/vcldemo.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl/workben') diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index d140b4f678bb..9218afde7e6c 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -1636,6 +1636,11 @@ class DemoPopup : public FloatingWindow DrawRect( Rectangle( Point( 1, 1 ), aSize ) ); SetLineColor( aColor ); } + + virtual void MouseButtonDown( const MouseEvent & ) SAL_OVERRIDE + { + Application::Quit(); + } }; class DemoApp : public Application -- cgit