summaryrefslogtreecommitdiff
path: root/framework/source/uielement/FixedImageToolbarController.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/FixedImageToolbarController.cxx')
-rw-r--r--framework/source/uielement/FixedImageToolbarController.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/uielement/FixedImageToolbarController.cxx b/framework/source/uielement/FixedImageToolbarController.cxx
index a666261b0f03..49377db5e555 100644
--- a/framework/source/uielement/FixedImageToolbarController.cxx
+++ b/framework/source/uielement/FixedImageToolbarController.cxx
@@ -43,12 +43,6 @@ public:
FixedImageControl(vcl::Window* pParent, const OUString& rCommand);
virtual ~FixedImageControl() override;
virtual void dispose() override;
- virtual void GetFocus() override
- {
- if (m_xWidget)
- m_xWidget->grab_focus();
- InterimItemWindow::GetFocus();
- }
DECL_LINK(KeyInputHdl, const ::KeyEvent&, bool);
private:
@@ -59,6 +53,8 @@ FixedImageControl::FixedImageControl(vcl::Window* pParent, const OUString& rComm
: InterimItemWindow(pParent, "svt/ui/fixedimagecontrol.ui", "FixedImageControl")
, m_xWidget(m_xBuilder->weld_image("image"))
{
+ InitControlBase(m_xWidget.get());
+
m_xWidget->connect_key_press(LINK(this, FixedImageControl, KeyInputHdl));
bool bBigImages(SvtMiscOptions().AreCurrentSymbolsLarge());