Files
odfstudio/include
Michael Weghorn 33bf4511ab tdf#130857 formula, sc: Stop relying on weld::Frame's label child
Add a RefEdit::SetReferences variant that takes a weld::Frame
instead of a weld::Label param.
For those cases where a Frame's label was previously retrieved using
weld::Frame::weld_label_widget in order to pass
it to the only RefEdit::SetReferences variant taking
a weld::Label, use the new variant instead and stop
calling weld::Frame::weld_label_widget to get the
label child.

Use default of nullptr for the second param to the
RefEdit::SetReferences method taking a weld::Label,
to avoid ambiguity for the cases where an explicit
nullptr is passed.

For the QtInstanceFrame implementation, the QGroupBox
widget doesn't have a separate label child, but handles
the text itself, which is why
QtInstanceFrame::weld_label_widget simply triggers an assert.

This commit prepares for removing weld::Frame::weld_label_widget
altogether.

No change in behavior intended or seen in a quick test.

One way to trigger this code path:

* start Calc
* select some cells
* "Data" -> "Define Range"
* type "foobar" into the name field
* click on the "Shrink" button

Change-Id: Ia37e5f73d7b68aa5fae87be167bdc00e5cf6f1f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189220
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-08-09 08:08:34 +02:00
..
2025-05-20 13:25:08 +02:00
2025-07-22 16:30:38 +02:00
2025-07-21 13:59:59 +02:00
…
2025-07-31 14:13:38 +02:00
2025-08-05 22:11:51 +02:00
…
2025-05-16 15:45:41 +02:00
…
2025-07-29 10:45:11 +02:00
…
…
…
…
…