mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-02 04:50:01 +00:00

Only buttons are used as default widgets for dialogs, and that's also the only thing that Qt supports conceptually, see [1] and previous commit Change-Id: If5042dce9b10c9c4f3450a1aa1299bec81c16771 Author: Michael Weghorn <m.weghorn@posteo.de> Date: Sat Jul 26 00:36:10 2025 +0200 tdf#130857 weld: Move methods to set default widget to Dialog Therefore, also adjust the weld API accordingly by switching the params from weld::Widget to weld::Button and renaming the methods accordingly. [1] https://doc.qt.io/qt-6/qdialog.html#default-button Change-Id: I6a2b162e1711fd49df852360510bf25f33f6c874 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188380 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>