diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-29 23:49:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-02 11:07:34 +0100 |
commit | c650658fe23eae895ca1e0383d5a8c591eb4dd09 (patch) | |
tree | e8b01274934c76924082b0f1f11ca6710c3f7fd2 /vcl/source | |
parent | 4da61d4cc8f70ff62d7bac23a1b97d9d7011a678 (diff) |
weld SwGlossaryGroupDlg
Change-Id: I142123b474e0e35f6da375977e33d40e0ad39054
Reviewed-on: https://gerrit.libreoffice.org/64324
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index d9cdc5e0a63f..e61980febe35 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -1862,6 +1862,8 @@ public: for (size_t i = 0; i < rWidths.size(); ++i) pHeaderBar->SetItemSize(pHeaderBar->GetItemId(i), rWidths[i]); } + // call Resize to recalculate based on the new tabs + m_xTreeView->Resize(); } virtual OUString get_column_title(int nColumn) const override @@ -1933,7 +1935,7 @@ public: { for (SvTreeListEntry* pEntry = m_xTreeView->First(); pEntry; pEntry = m_xTreeView->Next(pEntry)) { - if (m_xTreeView->GetEntryText(pEntry) == rText) + if (SvTabListBox::GetEntryText(pEntry, 0) == rText) return m_xTreeView->GetAbsPos(pEntry); } return -1; @@ -2245,7 +2247,7 @@ public: virtual OUString get_text(const weld::TreeIter& rIter) const override { const SalInstanceTreeIter& rVclIter = static_cast<const SalInstanceTreeIter&>(rIter); - return m_xTreeView->GetEntryText(rVclIter.iter); + return SvTabListBox::GetEntryText(rVclIter.iter, 0); } virtual OUString get_id(const weld::TreeIter& rIter) const override @@ -2283,6 +2285,7 @@ public: virtual void make_sorted() override { m_xTreeView->SetStyle(m_xTreeView->GetStyle() | WB_SORT); + m_xTreeView->GetModel()->Resort(); } SvTabListBox& getTreeView() |