summaryrefslogtreecommitdiff
path: root/binaryurp/source/writer.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-10-21 18:40:50 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-10-22 07:16:20 +0200
commit5794432281ccc6f8d3a5659d742113ca51807c8d (patch)
treed87d4fe2b782e2a6b7e0d40662341ed180c26ffa /binaryurp/source/writer.cxx
parentafb980283a9909aaecb6737018a05c891c9dc2b8 (diff)
tdf#130857 qt weld: Evaluate grid positions
Implement handling for the "left-attach" and "top-attach" packing properties of "GtkGrid" children, which describe the column and row of these children within the grid. Introduce a new static helper method QtBuilder::applyGridPackingProperties that implements the handling for QWidget children for now. (Support for QLayout items within a grid will have to be added later in order to supported cases where e.g. a "GtkBox" is located inside of a "GtkGrid" in a .ui file.) In order to move the item to the proper position within the grid, first locate it to determine it's current row and column index, remove the item from the layout, and re-insert it at the new position. While this might not be the most efficient way of doing this, it is fairly easy to implement, without having to change the overall approach that QtBuilder, VclBuilder and the WidgetBuilder base currently process .ui files. This is sufficient for Writer's "Word Count" dialog, for which support will be declared in an upcoming commit. Change-Id: Ia296373c408e6cd84ffcc29b9d9a03d3c2441816 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175366 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'binaryurp/source/writer.cxx')
0 files changed, 0 insertions, 0 deletions