summaryrefslogtreecommitdiff
path: root/sfx2
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 /sfx2
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 'sfx2')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx2
-rw-r--r--sfx2/source/dialog/passwd.cxx2
-rw-r--r--sfx2/source/dialog/securitypage.cxx8
3 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 07af730ace62..43312afa52aa 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -883,7 +883,7 @@ void SfxSingleTabDialogController::SetTabPage(SfxTabPage* pTabPage)
m_xSfxPage->SetUserData(sUserData);
m_xSfxPage->Reset(GetInputItemSet());
- m_xHelpBtn->show(Help::IsContextHelpEnabled());
+ m_xHelpBtn->set_visible(Help::IsContextHelpEnabled());
// Set TabPage text in the Dialog if there is any
OUString sTitle(m_xSfxPage->GetText());
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index ea859cad9a22..7d89d5c90376 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -147,7 +147,7 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen )
void SfxPasswordDialog::ShowMinLengthText(bool bShow)
{
- m_xMinLengthFT->show(bShow);
+ m_xMinLengthFT->set_visible(bShow);
}
short SfxPasswordDialog::run()
diff --git a/sfx2/source/dialog/securitypage.cxx b/sfx2/source/dialog/securitypage.cxx
index eb9b216f3900..d6db1818e7c6 100644
--- a/sfx2/source/dialog/securitypage.cxx
+++ b/sfx2/source/dialog/securitypage.cxx
@@ -306,8 +306,8 @@ void SfxSecurityPage_Impl::Reset_Impl()
m_xUnProtectPB->set_sensitive(false);
}
- m_xProtectPB->show(bProtect);
- m_xUnProtectPB->show(bUnProtect);
+ m_xProtectPB->set_visible(bProtect);
+ m_xUnProtectPB->set_visible(bUnProtect);
}
}
@@ -396,8 +396,8 @@ IMPL_LINK_NOARG(SfxSecurityPage_Impl, ChangeProtectionPBHdl, weld::Button&, void
m_xRecordChangesCB->set_active(bNewProtection);
- m_xUnProtectPB->show(bNewProtection);
- m_xProtectPB->show(!bNewProtection);
+ m_xUnProtectPB->set_visible(bNewProtection);
+ m_xProtectPB->set_visible(!bNewProtection);
}
VclPtr<SfxTabPage> SfxSecurityPage::Create(TabPageParent pParent, const SfxItemSet * rItemSet)