From a8f21e120b1073d7019d41e85cc9a15104ed5c93 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 12 Feb 2019 09:55:25 +0000 Subject: merge together as get_checkbox_column_width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I183d2d94ab60c128b136674ef40eeb30057b281c Reviewed-on: https://gerrit.libreoffice.org/67714 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/dialogs/multipat.cxx | 2 +- cui/source/dialogs/srchxtra.cxx | 2 +- cui/source/options/certpath.cxx | 2 +- cui/source/tabpages/autocdlg.cxx | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx index 35ea7c80d489..b6e409e5d011 100644 --- a/cui/source/dialogs/multipat.cxx +++ b/cui/source/dialogs/multipat.cxx @@ -199,7 +199,7 @@ SvxMultiPathDialog::SvxMultiPathDialog(weld::Window* pParent) m_xRadioLB->get_text_height() * 10); std::vector aWidths; - aWidths.push_back(m_xRadioLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xRadioLB->get_checkbox_column_width()); m_xRadioLB->set_column_fixed_widths(aWidths); std::vector aRadioColumns; diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx index 94ae52d9e0b4..39161e40765a 100644 --- a/cui/source/dialogs/srchxtra.cxx +++ b/cui/source/dialogs/srchxtra.cxx @@ -113,7 +113,7 @@ SvxSearchAttributeDialog::SvxSearchAttributeDialog(weld::Window* pParent, m_xAttrLB->get_height_rows(12)); std::vector aWidths; - aWidths.push_back(m_xAttrLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xAttrLB->get_checkbox_column_width()); m_xAttrLB->set_column_fixed_widths(aWidths); m_xOKBtn->connect_clicked(LINK( this, SvxSearchAttributeDialog, OKHdl)); diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx index 4a83dad29b94..37eeadc07641 100644 --- a/cui/source/options/certpath.cxx +++ b/cui/source/options/certpath.cxx @@ -38,7 +38,7 @@ CertPathDialog::CertPathDialog(weld::Window* pParent) m_xCertPathList->get_height_rows(6)); std::vector aWidths; - aWidths.push_back(m_xCertPathList->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xCertPathList->get_checkbox_column_width()); aWidths.push_back(m_xCertPathList->get_approximate_digit_width() * 20); m_xCertPathList->set_column_fixed_widths(aWidths); diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 03494f6d17f0..5e915f8ba31b 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -189,7 +189,7 @@ OfaAutocorrOptionsPage::OfaAutocorrOptionsPage(TabPageParent pParent, const SfxI , m_xCheckLB(m_xBuilder->weld_tree_view("checklist")) { std::vector aWidths; - aWidths.push_back(m_xCheckLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xCheckLB->get_checkbox_column_width()); m_xCheckLB->set_column_fixed_widths(aWidths); m_xCheckLB->set_size_request(-1, m_xCheckLB->get_height_rows(10)); } @@ -1584,7 +1584,7 @@ OfaQuoteTabPage::OfaQuoteTabPage(TabPageParent pParent, const SfxItemSet& rSet) else { std::vector aWidths; - aWidths.push_back(m_xSwCheckLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xSwCheckLB->get_checkbox_column_width()); m_xCheckLB->set_column_fixed_widths(aWidths); m_xSwCheckLB->hide(); } @@ -2131,7 +2131,7 @@ OfaSmartTagOptionsTabPage::OfaSmartTagOptionsTabPage(TabPageParent pParent, m_xSmartTagTypesLB->get_height_rows(6)); std::vector aWidths; - aWidths.push_back(m_xSmartTagTypesLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xSmartTagTypesLB->get_checkbox_column_width()); m_xSmartTagTypesLB->set_column_fixed_widths(aWidths); // set the handlers: -- cgit