[Libreoffice-commits] core.git: include/vcl vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 23 08:38:29 UTC 2020
include/vcl/InterimItemWindow.hxx | 1 +
vcl/source/control/InterimItemWindow.cxx | 7 +++++++
2 files changed, 8 insertions(+)
New commits:
commit 7db082e5758033c1d15ff885400fd98664d2837b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 22 20:06:17 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 23 10:37:43 2020 +0200
keep sensitivity in sync with StateChangedType::Enable
Change-Id: I49321251d8fab6b6d0e44897bcb9c201aa5e2d45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99254
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/InterimItemWindow.hxx b/include/vcl/InterimItemWindow.hxx
index 2e2a259a2077..882a01f9bd5f 100644
--- a/include/vcl/InterimItemWindow.hxx
+++ b/include/vcl/InterimItemWindow.hxx
@@ -21,6 +21,7 @@ public:
virtual void Resize() override;
virtual Size GetOptimalSize() const override;
+ virtual void StateChanged(StateChangedType nStateChange) override;
virtual void GetFocus() override;
bool ControlHasFocus() const;
diff --git a/vcl/source/control/InterimItemWindow.cxx b/vcl/source/control/InterimItemWindow.cxx
index e42a331438f2..8b815815fbfb 100644
--- a/vcl/source/control/InterimItemWindow.cxx
+++ b/vcl/source/control/InterimItemWindow.cxx
@@ -25,6 +25,13 @@ InterimItemWindow::InterimItemWindow(vcl::Window* pParent, const OUString& rUIXM
SetPaintTransparent(true);
}
+void InterimItemWindow::StateChanged(StateChangedType nStateChange)
+{
+ if (nStateChange == StateChangedType::Enable)
+ m_xContainer->set_sensitive(IsEnabled());
+ Control::StateChanged(nStateChange);
+}
+
InterimItemWindow::~InterimItemWindow() { disposeOnce(); }
void InterimItemWindow::dispose()
More information about the Libreoffice-commits
mailing list