diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-07 22:04:07 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-08 08:39:24 +0100 |
commit | ea790b37d991b6db818ff75f9d28ad10ef865810 (patch) | |
tree | dc4bec75f14e719034b19fe0d5a4fa2caf72c0fe /pch/system_empty.cxx | |
parent | a6dde76b2d29c33045d79cc2a69a01c6f3d96f2c (diff) |
tdf#130857 qt weld: Add initial SpinButton support
Add new class QtInstanceSpinButton that is the
weld::SpinButton implementation using native
widgets. Initially, implement the actual logic
of only some methods, and let the others trigger
an assert for now. (These can be implemented once
needed to support more dialogs.)
Initially, assume that the value is an integer
(which is the case for the "Table" -> "Insert"
-> "Rows" dialog in Writer, for which support
will be declared in an upcoming commit).
However, already use a QDoubleSpinBox
that supports floating point values instead
of QSpinBox (that can only handle integer values)
to prepare for extending the implementation
accordingly later.
In QtBuilder, handle "GtkSpinButton" objects,
create a QDoubleSpinBox for them and evaluate
the "digits" and "adjustment" properties to
set the corresponding values for the
QDoubleSpinBox.
Let QtInstanceBuilder::weld_spin_button
return an instance of the newly added
class.
Change-Id: I0808589a3e6bece749c0ae4541f2419410ea99bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176248
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'pch/system_empty.cxx')
0 files changed, 0 insertions, 0 deletions