ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TransferProgressDelegate Class Referencefinal

Renders a progress bar in the Progress column of ComputeTransferModel. More...

#include <TransferProgressDelegate.hpp>

Inherits QStyledItemDelegate.

Collaboration diagram for TransferProgressDelegate:
Collaboration graph

Public Member Functions

 TransferProgressDelegate (QObject *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Detailed Description

Renders a progress bar in the Progress column of ComputeTransferModel.

Reads Qt::UserRole from the model index to obtain the integer progress value (0–100) and paints a QStyleOptionProgressBar using the application style.