summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-08-27 14:48:36 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-08-27 14:49:54 +0100
commit5fba7ebf5c465b218b650141eab28c27cc19c79e (patch)
tree82d491cf34c4c5df19ac8385320a4a4533850388 /vcl/workben
parent186c82e81f3d75be0971ff1b561172a182e46a97 (diff)
vcldemo: quit popup on mouse click.
Change-Id: I0fc1967d3863723b0c8e3e082fac19cc49aba345
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/vcldemo.cxx5
1 files changed, 5 insertions, 0 deletions
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