[Libreoffice-commits] core.git: Branch 'libreoffice-6-4-0' - dbaccess/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 21 16:49:00 UTC 2020
dbaccess/source/ui/misc/WNameMatch.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit ef8d6f0b7bd8455a9dfbfb9dcf7b02fa5fc80d91
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 20 17:25:34 2020 +0000
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Tue Jan 21 17:48:23 2020 +0100
Resolves: tdf#130075 have to specify which column is the text column
in this two column case
Change-Id: Ia999a0540b2d0f7c03a54241c61bf4c2231b8460
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87092
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
Tested-by: Xisco Faulí <xiscofauli at libreoffice.org>
Reviewed-by: Michael Stahl <michael.stahl at cib.de>
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx
index 8e759d879178..fbc0675b4ef0 100644
--- a/dbaccess/source/ui/misc/WNameMatch.cxx
+++ b/dbaccess/source/ui/misc/WNameMatch.cxx
@@ -59,6 +59,10 @@ OWizNameMatching::OWizNameMatching(weld::Container* pPage, OCopyTableWizard* pWi
m_xAll->connect_clicked(LINK(this,OWizNameMatching,AllNoneClickHdl));
m_xNone->connect_clicked(LINK(this,OWizNameMatching,AllNoneClickHdl));
+ std::vector<int> aWidths;
+ aWidths.push_back(m_xCTRL_LEFT->get_checkbox_column_width());
+ m_xCTRL_LEFT->set_column_fixed_widths(aWidths);
+
m_xCTRL_LEFT->connect_changed(LINK(this,OWizNameMatching,TableListClickHdl));
m_xCTRL_RIGHT->connect_changed(LINK(this,OWizNameMatching,TableListRightSelectHdl));
@@ -309,6 +313,8 @@ void OWizNameMatching::FillListBox(weld::TreeView& rTreeView, const ODatabaseExp
int nRow(0);
+ const int nTextCol = bCheckButtons ? 1 : 0;
+
for (auto const& elem : rList)
{
rTreeView.append();
@@ -317,7 +323,7 @@ void OWizNameMatching::FillListBox(weld::TreeView& rTreeView, const ODatabaseExp
bool bChecked = !elem->second->IsAutoIncrement();
rTreeView.set_toggle(nRow, bChecked ? TRISTATE_TRUE : TRISTATE_FALSE, 0);
}
- rTreeView.set_text(nRow, elem->first);
+ rTreeView.set_text(nRow, elem->first, nTextCol);
rTreeView.set_id(nRow, OUString::number(reinterpret_cast<sal_Int64>(elem->second)));
++nRow;
}
More information about the Libreoffice-commits
mailing list