MCPcopy Create free account
hub / github.com/MITK/MITK / paint

Method paint

Modules/RTUI/src/QmitkDoseValueDelegate.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void QmitkDoseValueDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option
25 , const QModelIndex &index) const
26{
27 QVariant data = index.data(Qt::DisplayRole);
28
29 QStyleOptionViewItem opt = option;
30 initStyleOption(&opt, index);
31
32 QStyle *style = QApplication::style();
33
34
35 style->drawItemText(painter, opt.rect.adjusted(0,0,-5,0), Qt::AlignRight | Qt::AlignVCenter, opt.palette,true, data.toString());
36}
37
38QWidget* QmitkDoseValueDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &
39 , const QModelIndex &index) const

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected