diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-04 17:20:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-05 11:20:00 +0100 |
commit | 663aab4c2dd5d64d49b91a30cfa8f057729eae36 (patch) | |
tree | 78f20506486b2d6b3af9affe9afb7e10a0c70254 /sfx2/source/sidebar/TabBar.cxx | |
parent | 91c5642bf0ee48ff91181d779c3a84c768f340df (diff) |
use XGraphic instead of Image
we don't appear to use the Icon in our own code, though there may
be a route to set it from an extension or via config
Change-Id: I5e169db6335a8e64aeb3d2e6672f5a4b7c65c57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105309
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar/TabBar.cxx')
-rw-r--r-- | sfx2/source/sidebar/TabBar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx index 4f49bd461364..7c8d98c7ff7d 100644 --- a/sfx2/source/sidebar/TabBar.cxx +++ b/sfx2/source/sidebar/TabBar.cxx @@ -150,7 +150,7 @@ void TabBar::UpdateButtonIcons() if (xDeckDescriptor) { - aImage = GetItemImage(*xDeckDescriptor); + aImage = Image(GetItemImage(*xDeckDescriptor)); item.mpButton->SetModeImage(aImage); } } @@ -292,7 +292,7 @@ VclPtr<RadioButton> TabBar::CreateTabItem(const DeckDescriptor& rDeckDescriptor) return pItem; } -Image TabBar::GetItemImage(const DeckDescriptor& rDeckDescriptor) const +css::uno::Reference<css::graphic::XGraphic> TabBar::GetItemImage(const DeckDescriptor& rDeckDescriptor) const { return Tools::GetImage( rDeckDescriptor.msIconURL, |