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 /sw/source/ui/index/swuiidxmrk.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 'sw/source/ui/index/swuiidxmrk.cxx')
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 5929635026fb..627ccf874e1e 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -672,9 +672,9 @@ void SwIndexMarkPane::ModifyHdl(const weld::Widget& rBox) m_xLevelNF->set_value(m_xLevelNF->normalize(0)); bSetKey2 = true; } - m_xLevelFT->show(bLevelEnable); - m_xLevelNF->show(bLevelEnable); - m_xMainEntryCB->show(nPos == POS_INDEX); + m_xLevelFT->set_visible(bLevelEnable); + m_xLevelNF->set_visible(bLevelEnable); + m_xMainEntryCB->set_visible(nPos == POS_INDEX); m_xKey1FT->set_sensitive(bKeyEnable); m_xKey1DCB->set_sensitive(bKeyEnable); @@ -795,9 +795,9 @@ void SwIndexMarkPane::UpdateDialog() m_xKey1FT->set_sensitive(bKeyEnable); m_xKey1DCB->set_sensitive(bKeyEnable); m_xLevelNF->set_max(MAXLEVEL); - m_xLevelFT->show(bLevelEnable); - m_xLevelNF->show(bLevelEnable); - m_xMainEntryCB->show(!bLevelEnable); + m_xLevelFT->set_visible(bLevelEnable); + m_xLevelNF->set_visible(bLevelEnable); + m_xMainEntryCB->set_visible(!bLevelEnable); m_xKey2FT->set_sensitive(bKey2Enable); m_xKey2DCB->set_sensitive(bKey2Enable); @@ -1099,9 +1099,9 @@ SwAuthorMarkPane::SwAuthorMarkPane(weld::DialogController &rDialog, weld::Builde , m_xCreateEntryPB(rBuilder.weld_button("new")) , m_xEditEntryPB(rBuilder.weld_button("edit")) { - m_xActionBT->show(true); - m_xFromComponentRB->show(bNewEntry); - m_xFromDocContentRB->show(bNewEntry); + m_xActionBT->show(); + m_xFromComponentRB->set_visible(bNewEntry); + m_xFromDocContentRB->set_visible(bNewEntry); m_xFromComponentRB->set_active(bIsFromComponent); m_xFromDocContentRB->set_active(!bIsFromComponent); @@ -1116,8 +1116,8 @@ SwAuthorMarkPane::SwAuthorMarkPane(weld::DialogController &rDialog, weld::Builde m_rDialog.set_title(SwResId( bNewEntry ? STR_AUTHMRK_INSERT : STR_AUTHMRK_EDIT)); - m_xEntryED->show(!bNewEntry); - m_xEntryLB->show(bNewEntry); + m_xEntryED->set_visible(!bNewEntry); + m_xEntryLB->set_visible(bNewEntry); if (bNewEntry) { m_xEntryLB->connect_changed(LINK(this, SwAuthorMarkPane, CompEntryHdl)); |