LeechCraft 0.6.70-17769-g4e68d7fcba
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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<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<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:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17769.g4e68d7fcba-build/leechcraft-0.6.70-17769-g4e68d7fcba/src/util/gui/progressdelegate.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17769.g4e68d7fcba-build/leechcraft-0.6.70-17769-g4e68d7fcba/src/util/gui/progressdelegate.cpp