LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::ProgressDelegate Class Reference

#include "progressdelegate.h"

+ Inheritance diagram for LC::Util::ProgressDelegate:
+ Collaboration diagram for LC::Util::ProgressDelegate:

Classes

struct  Progress
 

Public Types

using ProgressGetter_t = std::function< std::optional< Progress >(QModelIndex)>
 

Public Member Functions

 ProgressDelegate (ProgressGetter_t &&progress, QObject *parent=nullptr)
 
void paint (QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override
 

Detailed Description

Definition at line 16 of file progressdelegate.h.

Member Typedef Documentation

◆ ProgressGetter_t

using LC::Util::ProgressDelegate::ProgressGetter_t = std::function<std::optional<Progress> (QModelIndex)>

Definition at line 27 of file progressdelegate.h.

Constructor & Destructor Documentation

◆ ProgressDelegate()

LC::Util::ProgressDelegate::ProgressDelegate ( ProgressGetter_t &&  progress,
QObject *  parent = nullptr 
)
explicit

Definition at line 15 of file progressdelegate.cpp.

Member Function Documentation

◆ paint()

void LC::Util::ProgressDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 21 of file progressdelegate.cpp.

References LC::Util::ElideProgressBarText().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: