diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-06 18:00:27 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-07 07:12:03 +0200 |
commit | 70b6d20e930453a963118744c747fb08935a86ee (patch) | |
tree | ed2a1ec46e202237d05e1a4508056d74831bbc64 /vcl/qt5/QtInstanceWidget.cxx | |
parent | fcb6b33eafdc756d2c821a58c0e8cdc1f4cc352c (diff) |
tdf#130857 qt weld: Implement QtInstanceWidget::is_active
For now, let it be the same as
`QtInstanceWidget::has_focus` as there seems to be no
direct equivalent, and the comment in weld.hxx also
questions whether there is much value in having two
different methods:
// return if this widget has the keyboard focus within the active window
// TODO: review if this has any practical difference from has_focus()
virtual bool is_active() const = 0;
Change-Id: If90377d734a6c721c369a2d206c0e6122ac61853
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171557
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5/QtInstanceWidget.cxx')
-rw-r--r-- | vcl/qt5/QtInstanceWidget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstanceWidget.cxx b/vcl/qt5/QtInstanceWidget.cxx index 34dd3b611c74..bdeb1bf83f3a 100644 --- a/vcl/qt5/QtInstanceWidget.cxx +++ b/vcl/qt5/QtInstanceWidget.cxx @@ -63,7 +63,7 @@ bool QtInstanceWidget::has_focus() const return m_pWidget->hasFocus(); } -bool QtInstanceWidget::is_active() const { return true; } +bool QtInstanceWidget::is_active() const { return has_focus(); } bool QtInstanceWidget::has_child_focus() const { return true; } |