/package/util/

eghorn@posteo.de 2024-11-18T08:33:05+00:00 7a551570fe8baf1ca68c6c723c3709a56b69730b Following commit 4f08a15f3be9b39d0f1e83e6cffa47b62c183b69 Author: lovatico21 <lorenzo04lovato@gmail.com> Date: Wed Nov 13 18:12:58 2024 +0100 updated vim footers in vcl/qt6/*.cxx , update vim header/trailers to those in current `TEMPLATE.SOURCECODE.HEADER` for other qt5/qt6 headers and sources as well (i.e. for directories `vcl/inc/qt5`, `vcl/inc/qt6` and `vcl/qt5/`). Change-Id: If9fea8f4ce955396f064dbd9fd706e76d947bce1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176705 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Following

    commit 4f08a15f3be9b39d0f1e83e6cffa47b62c183b69
    Author: lovatico21 <lorenzo04lovato@gmail.com>
    Date:   Wed Nov 13 18:12:58 2024 +0100

        updated vim footers in vcl/qt6/*.cxx

, update vim header/trailers to those in current
`TEMPLATE.SOURCECODE.HEADER` for other qt5/qt6
headers and sources as well (i.e. for directories
`vcl/inc/qt5`, `vcl/inc/qt6` and `vcl/qt5/`).

Change-Id: If9fea8f4ce955396f064dbd9fd706e76d947bce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176705
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
tdf#130857 qt weld: Add QtInstanceRadioButton 2024-10-25T16:45:03+00:00 Michael Weghorn m.weghorn@posteo.de 2024-10-25T11:21:55+00:00 076deef1324b7db84f2a33ed005efe808b81a46e Implement initial support for native radio buttons using QRadioButton: * Let QtBuilder create a QRadioButton widget when it encounters a "GtkRadioButton" object. * Let QtBuilder::setProperties also handle the QRadioButton case. Both, QRadioButton and QCheckBox derive from QAbstractButton, so reuse the existing logic for QCheckBox to set label and checked status. * Add new class QtInstanceRadioButton as a weld::RadioButton implementation that uses a QRadioButton widget. * Let QtInstanceBuilder::weld_radio_button return an instance of the new class. For now, ignore the GtkRadioButton "group" property [1] that is used to group radio buttons. QRadioButton's are automatically grouped when they have the same parent widget, which is sufficient for the case of the "Alignment" dialog in Math for which support will be declared in an upcoming commit. For more complex scenarios, the use of QButtonGroup [2] could be implemented in the future to explicitly group radio buttons, as mentioned in the QRadioButton doc [3]: > If you need multiple exclusive button groups for radio buttons that > belong to the same parent widget, put them into a QButtonGroup. [1] https://docs.gtk.org/gtk3/property.RadioButton.group.html [2] https://doc.qt.io/qt-6/qbuttongroup.html [3] https://doc.qt.io/qt-6/qradiobutton.html Change-Id: Iaf8b0fef00fc10268c09410080156e7913634ab7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175639 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Implement initial support for native radio buttons
using QRadioButton:

* Let QtBuilder create a QRadioButton widget
  when it encounters a "GtkRadioButton" object.
* Let QtBuilder::setProperties also handle the
  QRadioButton case. Both, QRadioButton and
  QCheckBox derive from QAbstractButton, so reuse
  the existing logic for QCheckBox to set label and
  checked status.
* Add new class QtInstanceRadioButton as a weld::RadioButton
  implementation that uses a QRadioButton widget.
* Let QtInstanceBuilder::weld_radio_button return
  an instance of the new class.

For now, ignore the GtkRadioButton "group" property [1]
that is used to group radio buttons.

QRadioButton's are automatically grouped when they
have the same parent widget, which is sufficient
for the case of the "Alignment" dialog in Math
for which support will be declared in an upcoming
commit.

For more complex scenarios, the use of QButtonGroup [2]
could be implemented in the future to explicitly group
radio buttons, as mentioned in the QRadioButton doc [3]:

> If you need multiple exclusive button groups for radio buttons that
> belong to the same parent widget, put them into a QButtonGroup.

[1] https://docs.gtk.org/gtk3/property.RadioButton.group.html
[2] https://doc.qt.io/qt-6/qbuttongroup.html
[3] https://doc.qt.io/qt-6/qradiobutton.html

Change-Id: Iaf8b0fef00fc10268c09410080156e7913634ab7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175639
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins