Krita Source Code Documentation
Loading...
Searching...
No Matches
KisBusyProgressIndicator::Private Struct Reference

Public Member Functions

 Private (KisBusyProgressIndicator *_q)
 
void startProgressReport ()
 
void stopProgressReport ()
 

Public Attributes

bool isStarted {false}
 
int numEmptyTicks {0}
 
QAtomicInt numUpdates
 
KoProgressProxyprogressProxy {nullptr}
 
QTimer * timer {nullptr}
 
QAtomicInt timerStarted
 

Detailed Description

Definition at line 15 of file kis_busy_progress_indicator.cpp.

Constructor & Destructor Documentation

◆ Private()

KisBusyProgressIndicator::Private::Private ( KisBusyProgressIndicator * _q)
inline

Definition at line 17 of file kis_busy_progress_indicator.cpp.

18 : timer(new QTimer(_q))
19 {}

Member Function Documentation

◆ startProgressReport()

void KisBusyProgressIndicator::Private::startProgressReport ( )
inline

Definition at line 29 of file kis_busy_progress_indicator.cpp.

30 {
31 if (!progressProxy) {
32 return;
33 }
34 isStarted = true;
36 }
virtual void setRange(int minimum, int maximum)=0

References isStarted, progressProxy, and KoProgressProxy::setRange().

◆ stopProgressReport()

void KisBusyProgressIndicator::Private::stopProgressReport ( )
inline

Definition at line 38 of file kis_busy_progress_indicator.cpp.

39 {
40 if (!isStarted || !progressProxy) {
41 return;
42 }
43 progressProxy->setRange(0, 100);
45 isStarted = false;
46 }
virtual void setValue(int value)=0

References isStarted, progressProxy, KoProgressProxy::setRange(), and KoProgressProxy::setValue().

Member Data Documentation

◆ isStarted

bool KisBusyProgressIndicator::Private::isStarted {false}

Definition at line 27 of file kis_busy_progress_indicator.cpp.

27{false};

◆ numEmptyTicks

int KisBusyProgressIndicator::Private::numEmptyTicks {0}

Definition at line 22 of file kis_busy_progress_indicator.cpp.

22{0};

◆ numUpdates

QAtomicInt KisBusyProgressIndicator::Private::numUpdates

Definition at line 23 of file kis_busy_progress_indicator.cpp.

◆ progressProxy

KoProgressProxy* KisBusyProgressIndicator::Private::progressProxy {nullptr}

Definition at line 25 of file kis_busy_progress_indicator.cpp.

25{nullptr};

◆ timer

QTimer* KisBusyProgressIndicator::Private::timer {nullptr}

Definition at line 21 of file kis_busy_progress_indicator.cpp.

21{nullptr}; // owned by QObject hierarchy

◆ timerStarted

QAtomicInt KisBusyProgressIndicator::Private::timerStarted

Definition at line 24 of file kis_busy_progress_indicator.cpp.


The documentation for this struct was generated from the following file: