summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-01 21:41:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-02 12:29:17 +0100
commite2205c4876723876bcaf1dd5ce494debab97591a (patch)
treef6f096d0fde4d10f942cf76663880aa9b31bc623 /sfx2
parent32ca9f268142d2f26d0ec39ff3af989e78f51c8d (diff)
no difference between ImageRadioButton and RadioButton
Change-Id: Iae5b7fe329273f34d3e94f1136acdac0d55d1ced Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87816 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/ControlFactory.cxx2
-rw-r--r--sfx2/source/sidebar/TabItem.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/sidebar/ControlFactory.cxx b/sfx2/source/sidebar/ControlFactory.cxx
index b65f0b9c1779..de5e8123ddf3 100644
--- a/sfx2/source/sidebar/ControlFactory.cxx
+++ b/sfx2/source/sidebar/ControlFactory.cxx
@@ -28,7 +28,7 @@ VclPtr<CheckBox> ControlFactory::CreateMenuButton (vcl::Window* pParentWindow)
return VclPtr<MenuButton>::Create(pParentWindow);
}
-VclPtr<ImageRadioButton> ControlFactory::CreateTabItem (vcl::Window* pParentWindow)
+VclPtr<RadioButton> ControlFactory::CreateTabItem (vcl::Window* pParentWindow)
{
return VclPtr<TabItem>::Create(pParentWindow);
}
diff --git a/sfx2/source/sidebar/TabItem.cxx b/sfx2/source/sidebar/TabItem.cxx
index 160bec8a2075..013ff688d19c 100644
--- a/sfx2/source/sidebar/TabItem.cxx
+++ b/sfx2/source/sidebar/TabItem.cxx
@@ -31,8 +31,8 @@ using namespace css::uno;
namespace sfx2::sidebar {
TabItem::TabItem (vcl::Window* pParentWindow)
- : ImageRadioButton(pParentWindow),
- mbIsLeftButtonDown(false)
+ : RadioButton(pParentWindow, 0)
+ , mbIsLeftButtonDown(false)
{
SetStyle(GetStyle() | WB_TABSTOP | WB_DIALOGCONTROL | WB_NOPOINTERFOCUS);
SetBackground(Theme::GetPaint(Theme::Paint_TabBarBackground).GetWallpaper());
@@ -67,7 +67,7 @@ void TabItem::MouseMove(const MouseEvent& rEvent)
{
if (rEvent.IsEnterWindow() || rEvent.IsLeaveWindow())
Invalidate();
- ImageRadioButton::MouseMove(rEvent);
+ RadioButton::MouseMove(rEvent);
}
void TabItem::MouseButtonDown(const MouseEvent& rMouseEvent)