summaryrefslogtreecommitdiff
path: root/include/vcl/weld.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-27 16:17:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-10-29 14:14:04 +0100
commit07bde58988705ca45a619eb7a4e670a5d951abf6 (patch)
treeb3e76af23a024d7549d31b5df0642a79b769028d /include/vcl/weld.hxx
parent09e3d45cdc5c739e5246388a83ccfc6d76bf66e9 (diff)
use activate-link instead of clicked
so we can return true to consume the event and not continue to the default url dispatch handler Change-Id: I66400363a57d528a25d68a7f9314a8bc7d95876e Reviewed-on: https://gerrit.libreoffice.org/81555 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r--include/vcl/weld.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 21550aae2b8c..c9019d8dfaf5 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -1200,9 +1200,9 @@ class VCL_DLLPUBLIC RadioButton : virtual public ToggleButton
class VCL_DLLPUBLIC LinkButton : virtual public Container
{
protected:
- Link<LinkButton&, void> m_aClickHdl;
+ Link<LinkButton&, bool> m_aActivateLinkHdl;
- void signal_clicked() { m_aClickHdl.Call(*this); }
+ bool signal_activate_link() { return m_aActivateLinkHdl.Call(*this); }
public:
virtual void set_label(const OUString& rText) = 0;
@@ -1210,9 +1210,7 @@ public:
virtual void set_uri(const OUString& rUri) = 0;
virtual OUString get_uri() const = 0;
- void clicked() { signal_clicked(); }
-
- void connect_clicked(const Link<LinkButton&, void>& rLink) { m_aClickHdl = rLink; }
+ void connect_activate_link(const Link<LinkButton&, bool>& rLink) { m_aActivateLinkHdl = rLink; }
};
class VCL_DLLPUBLIC Scale : virtual public Widget