summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbinsdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-15 11:19:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-16 01:01:33 +0100
commite3e6f43bc8c01ca6c3ad87180db2b3e623d8eed4 (patch)
tree6a3f041c5073bc05e21ff3d1e4f0b194ba655df3 /sw/source/ui/dbui/dbinsdlg.cxx
parent8a8c029244e8a27efd92017968313c2116a9776a (diff)
clarify that set_visible(true/false) is just show/hide
ditch duplicate method Change-Id: Iea35d6437f48809a06e093241bddf301f00c502b Reviewed-on: https://gerrit.libreoffice.org/69302 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/dbui/dbinsdlg.cxx')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index d8dd205ea660..dd3abe56a7ee 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -409,24 +409,24 @@ IMPL_LINK( SwInsertDBColAutoPilot, PageHdl, weld::Button&, rButton, void )
m_xHeadFrame->set_label(MnemonicGenerator::EraseAllMnemonicChars(rButton.get_label().replace('_', '~')));
- m_xLbTextDbColumn->show( !bShowTable );
- m_xIbDbcolToEdit->show( !bShowTable );
- m_xEdDbText->show( !bShowTable );
- m_xFtDbParaColl->show( !bShowTable );
- m_xLbDbParaColl->show( !bShowTable );
-
- m_xLbTableDbColumn->show( bShowTable );
- m_xIbDbcolAllTo->show( bShowTable );
- m_xIbDbcolOneTo->show( bShowTable );
- m_xIbDbcolOneFrom->show( bShowTable );
- m_xIbDbcolAllFrom->show( bShowTable );
- m_xFtTableCol->show( bShowTable );
- m_xLbTableCol->show( bShowTable );
- m_xCbTableHeadon->show( bShowTable );
- m_xRbHeadlColnms->show( bShowTable );
- m_xRbHeadlEmpty->show( bShowTable );
- m_xPbTableFormat->show( bShowTable );
- m_xPbTableAutofmt->show( bShowTable );
+ m_xLbTextDbColumn->set_visible( !bShowTable );
+ m_xIbDbcolToEdit->set_visible( !bShowTable );
+ m_xEdDbText->set_visible( !bShowTable );
+ m_xFtDbParaColl->set_visible( !bShowTable );
+ m_xLbDbParaColl->set_visible( !bShowTable );
+
+ m_xLbTableDbColumn->set_visible( bShowTable );
+ m_xIbDbcolAllTo->set_visible( bShowTable );
+ m_xIbDbcolOneTo->set_visible( bShowTable );
+ m_xIbDbcolOneFrom->set_visible( bShowTable );
+ m_xIbDbcolAllFrom->set_visible( bShowTable );
+ m_xFtTableCol->set_visible( bShowTable );
+ m_xLbTableCol->set_visible( bShowTable );
+ m_xCbTableHeadon->set_visible( bShowTable );
+ m_xRbHeadlColnms->set_visible( bShowTable );
+ m_xRbHeadlEmpty->set_visible( bShowTable );
+ m_xPbTableFormat->set_visible( bShowTable );
+ m_xPbTableAutofmt->set_visible( bShowTable );
if( bShowTable )
m_xPbTableFormat->set_sensitive( 0 != m_xLbTableCol->n_children() );