diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-15 11:19:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-16 01:01:33 +0100 |
commit | e3e6f43bc8c01ca6c3ad87180db2b3e623d8eed4 (patch) | |
tree | 6a3f041c5073bc05e21ff3d1e4f0b194ba655df3 /svtools/source/dialogs/PlaceEditDialog.cxx | |
parent | 8a8c029244e8a27efd92017968313c2116a9776a (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 'svtools/source/dialogs/PlaceEditDialog.cxx')
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index 34f93b949ecc..089a7f525dc4 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -354,19 +354,19 @@ void PlaceEditDialog::SelectType(bool bSkipSeparator) } if (m_xCurrentDetails.get()) - m_xCurrentDetails->show(false); + m_xCurrentDetails->set_visible(false); const int nPos = m_xLBServerType->get_active( ); m_xCurrentDetails = m_aDetailsContainers[nPos]; m_nCurrentType = nPos; - m_xCurrentDetails->show(); + m_xCurrentDetails->set_visible(true); - m_xCBPassword->show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); - m_xEDPassword->show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); - m_xFTPasswordLabel->show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); - m_xEDUsername->show( m_xCurrentDetails->enableUserCredentials() ); - m_xFTUsernameLabel->show( m_xCurrentDetails->enableUserCredentials() ); + m_xCBPassword->set_visible( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); + m_xEDPassword->set_visible( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); + m_xFTPasswordLabel->set_visible( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() ); + m_xEDUsername->set_visible( m_xCurrentDetails->enableUserCredentials() ); + m_xFTUsernameLabel->set_visible( m_xCurrentDetails->enableUserCredentials() ); m_xDialog->resize_to_request(); |