Kaydet (Commit) f71208f4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: allow to change state of checkbox in treelist

Change-Id: If76ab528dfd835ea7718e153a943d182ecc4ce0a
Reviewed-on: https://gerrit.libreoffice.org/35698Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst bc054e18
......@@ -116,6 +116,15 @@ void TreeListEntryUIObject::execute(const OUString& rAction, const StringMap& /*
{
mxTreeList->Expand(mpEntry);
}
else if (rAction == "CLICK")
{
if (!isCheckBoxList(mxTreeList))
return;
SvButtonState eState = mxTreeList->GetCheckButtonState(mpEntry);
eState = eState == SvButtonState::Checked ? SvButtonState::Unchecked : SvButtonState::Checked;
mxTreeList->SetCheckButtonState(mpEntry, eState);
mxTreeList->CheckButtonHdl();
}
}
std::unique_ptr<UIObject> TreeListEntryUIObject::get_child(const OUString& rID)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment