[Qt-creator] Updating Pretty Printers
André Pönitz
apoenitz at t-online.de
Sat Aug 21 04:42:26 CEST 2021
On Fri, Aug 13, 2021 at 11:18:58AM -0700, Scott Bailey wrote:
> What is the right process to get a pretty printer updated? Specifically
> `boosttypes.py`.
> Here's the code I want to add:
>
> def qdump__boost__container__devector(d, value):
> inner_type = value.type[0]
> buffer = value["m_"]["buffer"].pointer();
> front_idx = value["m_"]["front_idx"].integer()
> back_idx = value["m_"]["back_idx"].integer()
> start = buffer + (front_idx * inner_type.size())
> size = int(back_idx - front_idx)
> if size > 0:
> d.checkPointer(start)
> d.putItemCount(size)
> d.putPlotData(start, size, inner_type)
The usual process would be the same as for Qt proper, i.e. via
codereview.qt-project.org, setup is detailed at https://qt-project.org
If there are any unclarities, feel free to ask here on the list, or
on the #qt-creator channel at Libera Chat IRC, or me by direct e-mail.
Andre'
More information about the Qt-creator
mailing list