From a2736303fea5ad2305ca8d38b90f5a21a8ab6a67 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 Aug 2017 09:31:14 +0200 Subject: convert WB_QUICK_SEARCH/WB_FORCE_MAKEVISIBLE to bool fields Change-Id: Ic297d97911a6c0356d24ffe4b58442dfe866139f Reviewed-on: https://gerrit.libreoffice.org/41407 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/control/dbtreelistbox.cxx | 2 +- dbaccess/source/ui/misc/WNameMatch.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 1d0b31fc5601..3e87504bee13 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -77,7 +77,7 @@ void DBTreeListBox::init() EnableContextMenuHandling(); - SetStyle( GetStyle() | WB_QUICK_SEARCH ); + SetQuickSearch( true ); } DBTreeListBox::~DBTreeListBox() diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx index 1090938aafff..eda3d24611fa 100644 --- a/dbaccess/source/ui/misc/WNameMatch.cxx +++ b/dbaccess/source/ui/misc/WNameMatch.cxx @@ -68,8 +68,8 @@ OWizNameMatching::OWizNameMatching(vcl::Window* pParent) m_pCTRL_RIGHT->SetSelectHdl(LINK(this,OWizNameMatching,TableListRightSelectHdl)); m_pCTRL_RIGHT->EnableCheckButton( nullptr ); - m_pCTRL_LEFT->SetStyle( m_pCTRL_LEFT->GetStyle() | WB_FORCE_MAKEVISIBLE ); - m_pCTRL_RIGHT->SetStyle( m_pCTRL_RIGHT->GetStyle() | WB_FORCE_MAKEVISIBLE ); + m_pCTRL_LEFT->SetForceMakeVisible( true ); + m_pCTRL_RIGHT->SetForceMakeVisible( true ); m_sSourceText = m_pTABLE_LEFT->GetText() + "\n"; m_sDestText = m_pTABLE_RIGHT->GetText() + "\n"; -- cgit