MCPcopy Create free account
hub / github.com/Vector35/debugger / sizeHint

Method sizeHint

ui/stackwidget.cpp:362–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360
361
362QSize DebugStackItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const
363{
364 auto totalWidth = (idx.data(Qt::SizeHintRole).toInt() + 2) * m_charWidth + 4;
365 return QSize(totalWidth, m_charHeight + 2);
366}
367
368
369void DebugStackItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const

Callers 3

setStatusTextMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected