office-gobmx/include
Michael Weghorn 77f4c8c78a tdf#130857 qt weld: Set tree view column header title
Make the `extractTitle` helper function used by
VclBuilder a static method in the BuilderBase
base class for reuse by QtBuilder.

In QtBuilder::makeObject, when encountering a "GtkTreeViewColumn"
object, add a new column to the QTreeView and set the
column title in the underlying model using
QStandardItemModel::setHeaderData.
Return the parent (tree view).
(Returning no object would cause WidgetBuilder::handleObject
to call WidgetBuilder::insertObject again, and thus result
in every column being processed twice, i.e. the double
amount of columns would be inserted).

Adjust QtInstanceTreeView::clear to no longer
call QStandardItemModel::clear [1], as that would
not only remove the "actual" items, but also the
header items, i.e. the column titles would get lost
as well. Remove all rows instead.

With this in place, the tree view in Writer's
"Tool" -> "XML Filter Settings" dialog has the
correct data + title set on open in a WIP branch
where support for that dialog is declared in
QtInstanceBuilder. (Other aspects in the dialog
still need to be addressed however.)

[1] https://doc.qt.io/qt-6/qstandarditemmodel.html#clear

Change-Id: I59956c007ed73cddb299ad2374afd88199ddc94d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178063
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 01:22:33 +01:00
..
android
animations slideshow: use unified hash for animations and layers 2024-12-06 15:19:10 +01:00
apple_remote
avmedia tdf#152299 - Remove unused define(s) from C/C++ files 2024-11-23 14:54:15 +01:00
basctl tdf#120658 - Reworking of dialogues Organize macros 2024-12-02 07:13:00 +01:00
basegfx com::sun::star -> css 2024-11-10 10:50:15 +01:00
basic tdf#108189 inspection of object hangs LO 2024-11-14 18:02:03 +01:00
bridges .NET Bindings: Native bridge for .NET 2024-09-18 08:10:36 +02:00
canvas canvas: simplify calcTransformedRectBounds 2024-11-19 16:14:13 +01:00
codemaker tdf#143148 Use pragma once instead of include guards 2024-11-22 07:01:52 +01:00
com/sun/star/uno
comphelper Simplify OPropertyContainer::getBaseTypes 2024-12-07 21:55:58 +01:00
connectivity cid#1633781 Initialization or destruction ordering is unspecified 2024-10-25 09:22:55 +02:00
cppcanvas tdf#143148 Use pragma once instead of include guards 2024-11-22 07:01:52 +01:00
cppu
cppuhelper Simplify a bit 2024-11-08 05:34:20 +01:00
cppunittester
dbaccess cid#1607861 Data race condition 2024-10-01 11:16:00 +02:00
desktop
docmodel
drawinglayer loplugin:unnecessaryvirtual 2024-12-02 14:00:55 +01:00
editeng cid#1636582 Negative loop bound 2024-12-07 15:20:04 +01:00
embeddedobj
filter cid#1636522 Missing move assignment operator 2024-12-03 11:47:19 +01:00
formula tdf#162177 Adapt function EASTERSUNDAY to ODF 1.4 2024-11-06 00:55:37 +01:00
fpicker
framework tdf#143148 Use #pragma once instead of include guards 2024-11-03 11:05:46 +01:00
helpcompiler
i18nlangtag Related: tdf#163903 Add French (Republic of Guinea) {fr-GN} [0x940C] 2024-11-18 22:45:45 +01:00
i18npool
i18nutil tdf#163105 Use HB data while selecting kashida insertion positions 2024-09-26 22:44:03 +02:00
jvmaccess
jvmfwk
LibreOfficeKit cool#4250 - add API to set per view options. 2024-11-28 15:09:27 +01:00
linguistic
o3tl cid#1606752 silence Overflowed return value 2024-11-16 22:55:53 +01:00
oox loplugin:unusedfields 2024-12-04 10:22:09 +01:00
opencl
osl Avoid -Werror,-Wcast-function-type-mismatch 2024-09-17 21:01:48 +02:00
package loplugin:unusedfields 2024-10-16 15:51:52 +02:00
registry
rtl Revert "tdf#152299 - Remove unused define(s) from C/C++ files" 2024-11-24 09:55:40 +01:00
sal Revert "tdf#152299 - Remove unused define(s) from C/C++ files" 2024-11-24 09:55:28 +01:00
salhelper
sax tdf#36709 Refactor Converter to separate parsing from unit conversion 2024-11-01 22:41:03 +01:00
sfx2 Change infobar donate message after discussions in Marketing 2024-12-05 19:01:48 +01:00
sot
static/unoembindhelpers
store
svl tdf#120658 - Reworking of dialogues Organize macros 2024-12-02 07:13:00 +01:00
svtools svtools a11y: Merge BrowseBoxImpl into BrowseBox 2024-11-26 17:49:13 +01:00
svx weld: Rename weld::Treeview selection signal/connect 2024-12-07 11:15:03 +01:00
systools
test improve loplugin passparamsbyref 2024-11-19 07:46:25 +01:00
toolkit a11y: Drop SAL_LOPLUGIN_ANNOTATE("crosscast") 2024-12-05 20:12:47 +01:00
tools Avoid UBSan when negating the most negative sal_Int64 value 2024-11-16 23:27:39 +01:00
typelib
ucbhelper loplugin:passstuffbyref in ucbhelper 2024-11-06 12:34:26 +01:00
uno .NET Bindings: Native bridge for .NET 2024-09-18 08:10:36 +02:00
unoidl
unotest unotest,sw: introduce queryDispatchStatus() 2024-12-02 18:46:39 +01:00
unotools tdf#146269: don't set modified when connecting frame, model and controller 2024-11-26 05:47:39 +01:00
vbahelper don't bother passing const std::[u16]string_view by reference 2024-12-03 15:18:31 +01:00
vcl tdf#130857 qt weld: Set tree view column header title 2024-12-08 01:22:33 +01:00
xmloff tdf#164046 style searching improvement breaks Impress layout 2024-11-29 11:04:50 +01:00
xmlreader
xmlscript
default.rc
IwyuFilter_include.yaml
postmac.h
postwin.h
premac.h
prewin.h
version.hrc