[Qt-creator] Updating Pretty Printers

Scott Bailey Scott at thebaileyfamily.org
Fri Aug 13 20:18:58 CEST 2021


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)


Thanks!
Scott Bailey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210813/e99df07e/attachment.html>


More information about the Qt-creator mailing list