Inherits QStyledItemDelegate.
|
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| |
Definition at line 340 of file StreamAlignerWidget.cpp.
◆ paint()
| void StreamAlignerDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
inline |
Definition at line 343 of file StreamAlignerWidget.cpp.
346 if (index.column() == 1 && index.data(
BufferSize).toInt()) {
350 QStyleOptionProgressBar progressBarOption;
351 progressBarOption.rect = option.rect;
352 progressBarOption.minimum = 0;
353 progressBarOption.maximum = bSize;
354 progressBarOption.progress = bFill;
355 progressBarOption.text = QString::number(bFill) +
" / " + QString::number(bSize);
356 progressBarOption.textVisible =
true;
358 QApplication::style()->drawControl(QStyle::CE_ProgressBar,
359 &progressBarOption, painter);
361 QStyledItemDelegate::paint(painter, option, index);
The documentation for this class was generated from the following file: