office-gobmx/include/vcl
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
..
accessibility a11y: Move action string header to vcl 2024-12-04 20:47:04 +01:00
animate
bitmap
filter
font
graphic
jsdialog weld: Rename weld::Treeview selection signal/connect 2024-12-07 11:15:03 +01:00
notebookbar
opengl
outdev
pdf
printer
qt
rendercontext
skia
test
toolkit a11y: Use FormattedField directly in SVTXAccessibleNumericField 2024-12-04 20:47:44 +01:00
uitest
abstdlg.hxx
AccessibleBrowseBoxObjType.hxx
accessiblefactory.hxx
accessibletable.hxx
accessibletableprovider.hxx
alpha.hxx
BinaryDataContainer.hxx
BinaryDataContainerTools.hxx
bitmap.hxx
BitmapAccessMode.hxx
BitmapBuffer.hxx
BitmapColor.hxx
bitmapex.hxx vcl: make Color parameters const in BitmapEx::createAlphaBlendFrame() 2024-12-06 10:17:28 +01:00
BitmapInfoAccess.hxx
BitmapPalette.hxx
BitmapReadAccess.hxx
BitmapTools.hxx
BitmapWriteAccess.hxx
builder.hxx tdf#130857 Pass child type to WidgetBuilder::insertObject 2024-11-24 17:04:01 +01:00
builderbase.hxx tdf#130857 qt weld: Set tree view column header title 2024-12-08 01:22:33 +01:00
builderfactory.hxx
builderpage.hxx
cairo.hxx
canvastools.hxx
checksum.hxx
ColorMask.hxx
commandevent.hxx
commandinfoprovider.hxx
ctrl.hxx
cursor.hxx
customweld.hxx
cvtgrf.hxx
decoview.hxx
dialoghelper.hxx
dibtools.hxx
dllapi.h
dndhelp.hxx
dockingarea.hxx
dockwin.hxx
DocWindow.hxx
embeddedfontshelper.hxx
EnumContext.hxx
errinf.hxx
event.hxx
evntpost.hxx
exceptiontypes.hxx
extoutdevdata.hxx
fieldvalues.hxx
fileregistration.hxx
FilterConfigItem.hxx
fntstyle.hxx
font.hxx
fontcapabilities.hxx
fontcharmap.hxx
formatter.hxx
formpdfexport.hxx
gdimetafiletools.hxx
gdimtf.hxx
GestureEventPan.hxx
GestureEventRotate.hxx
GestureEventZoom.hxx
gfxlink.hxx
glyphitem.hxx
glyphitemcache.hxx
gradient.hxx
graph.hxx
GraphicAttributes.hxx
GraphicExternalLink.hxx
graphicfilter.hxx
GraphicLoader.hxx
GraphicNativeMetadata.hxx
GraphicNativeTransform.hxx
GraphicObject.hxx
graphictools.hxx
hatch.hxx
headbar.hxx
help.hxx
htmltransferable.hxx
i18nhelp.hxx
IContext.hxx
IconThemeInfo.hxx
IDialogRenderable.hxx
idle.hxx
idletask.hxx
image.hxx
ImageTree.hxx
imap.hxx
imapcirc.hxx
imapobj.hxx
imappoly.hxx
imaprect.hxx
inetimg.hxx
inputctx.hxx
inputtypes.hxx
InterimItemWindow.hxx
introwin.hxx
ITiledRenderable.hxx
jobset.hxx
kernarray.hxx
keycod.hxx
keycodes.hxx
layout.hxx
lineinfo.hxx
locktoplevels.hxx
lok.hxx
mapmod.hxx
menu.hxx a11y: Move menu a11y classes to vcl, no more use factory 2024-12-04 20:47:30 +01:00
menubarupdateicon.hxx
metaact.hxx
metaactiontypes.hxx
metric.hxx
mnemonic.hxx
mtfxmldump.hxx
naturalsort.hxx
NotebookbarContextControl.hxx
oldprintadaptor.hxx
outdev.hxx
pdfextoutdevdata.hxx
pdfread.hxx
pdfwriter.hxx pdf: wrap more encryption specific code into PDFEncryptor 2024-11-22 07:19:12 +01:00
print.hxx tdf#88226 sd: fix cutting off the overflow text on the notes print page 2024-12-04 10:17:24 +01:00
PrinterSupport.hxx
prntypes.hxx
ptrstyle.hxx
QueueInfo.hxx
quickselectionengine.hxx
RawBitmap.hxx
region.hxx
roadmapwizard.hxx
salctype.hxx
salgtype.hxx
salnativewidgets.hxx
Scanline.hxx
scheduler.hxx
scrollable.hxx
seleng.hxx
settings.hxx remove unused header in vcl/settings.hxx 2024-12-06 19:47:42 +01:00
sound.hxx
specialchars.hxx
split.hxx
splitwin.hxx
status.hxx
stdtext.hxx
svapp.hxx
svmain.hxx
svtaccessiblefactory.hxx
syschild.hxx
sysdata.hxx
syswin.hxx
tabctrl.hxx notebookbar: Pass menu button as parent for its menu 2024-11-22 00:15:46 +01:00
tabpage.hxx
task.hxx
taskpanelist.hxx
TaskStopwatch.hxx
textdata.hxx
texteng.hxx
textfilter.hxx
textrectinfo.hxx
textview.hxx
themecolors.hxx don't bother passing const std::[u16]string_view by reference 2024-12-03 15:18:31 +01:00
threadex.hxx
timer.hxx
toolbox.hxx
toolboxid.hxx
transfer.hxx
txtattr.hxx
TypeSerializer.hxx
unohelp.hxx Move helpers for css::awt/VCL point/rect/size to vcl::unohelper 2024-12-04 20:47:14 +01:00
unohelp2.hxx
vclenum.hxx remove OutDevSupportType::TransparentRect 2024-11-21 08:15:37 +01:00
vclevent.hxx
vcllayout.hxx
vclmain.hxx
vclptr.hxx
vclreferencebase.hxx
vectorgraphicdata.hxx
VectorGraphicSearch.hxx
virdev.hxx
wall.hxx
weld.hxx weld: Rename weld::Treeview selection signal/connect 2024-12-07 11:15:03 +01:00
WeldedTabbedNotebookbar.hxx
weldutils.hxx
widgetbuilder.hxx tdf#130857 Pass child type to WidgetBuilder::insertObject 2024-11-24 17:04:01 +01:00
window.hxx loplugin:unnecessaryvirtual 2024-12-02 14:00:55 +01:00
WindowPosSize.hxx
windowstate.hxx
winscheduler.hxx
wintypes.hxx
wizardmachine.hxx
wmf.hxx
wmfexternal.hxx
wrkwin.hxx
xtextedt.hxx