MCPcopy Create free account
hub / github.com/baldurk/renderdoc / RDTableView

Method RDTableView

qrenderdoc/Widgets/Extended/RDTableView.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "RDHeaderView.h"
36
37RDTableView::RDTableView(QWidget *parent) : QTableView(parent)
38{
39 m_horizontalHeader = new RDHeaderView(Qt::Horizontal, this);
40 setHorizontalHeader(m_horizontalHeader);
41 m_horizontalHeader->setSectionsClickable(true);
42
43 m_delegate = new RichTextViewDelegate(this);
44 QTableView::setItemDelegate(m_delegate);
45
46 QObject::connect(m_horizontalHeader, &QHeaderView::sectionResized,
47 [this](int, int, int) { viewport()->update(); });
48}
49
50void RDTableView::setItemDelegate(QAbstractItemDelegate *delegate)
51{

Callers

nothing calls this directly

Calls 2

connectFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected