Krita Source Code Documentation
Loading...
Searching...
No Matches
KoFakeProgressProxy Class Reference

#include <KoFakeProgressProxy.h>

+ Inheritance diagram for KoFakeProgressProxy:

Public Member Functions

int maximum () const override
 
void setAutoNestedName (const QString &name) override
 
void setFormat (const QString &format) override
 
void setRange (int minimum, int maximum) override
 
void setValue (int value) override
 
- Public Member Functions inherited from KoProgressProxy
virtual ~KoProgressProxy ()
 

Static Public Member Functions

static KoProgressProxyinstance ()
 

Detailed Description

KoFakeProgressProxy is a simple class for using as a default sink of progress for the algorithms for cases when the user is not interested in progress reporting.

Please note that KoFakeProgressProxy::instance() object can be used from the context of multiple threads, so the class should have no state. If you introduce any state, please make sure singleton object is removed from the API.

Definition at line 23 of file KoFakeProgressProxy.h.

Member Function Documentation

◆ instance()

KoProgressProxy * KoFakeProgressProxy::instance ( )
static

Definition at line 41 of file KoFakeProgressProxy.cpp.

42{
43 return s_instance;
44}

◆ maximum()

int KoFakeProgressProxy::maximum ( ) const
overridevirtual

Implements KoProgressProxy.

Definition at line 15 of file KoFakeProgressProxy.cpp.

16{
17 return 100;
18}

◆ setAutoNestedName()

void KoFakeProgressProxy::setAutoNestedName ( const QString & name)
overridevirtual

Reimplemented from KoProgressProxy.

Definition at line 36 of file KoFakeProgressProxy.cpp.

37{
38 Q_UNUSED(name);
39}

◆ setFormat()

void KoFakeProgressProxy::setFormat ( const QString & format)
overridevirtual

Implements KoProgressProxy.

Definition at line 31 of file KoFakeProgressProxy.cpp.

32{
33 Q_UNUSED(format);
34}

◆ setRange()

void KoFakeProgressProxy::setRange ( int minimum,
int maximum )
overridevirtual

Implements KoProgressProxy.

Definition at line 25 of file KoFakeProgressProxy.cpp.

26{
27 Q_UNUSED(minimum);
28 Q_UNUSED(maximum);
29}
int maximum() const override

References maximum().

◆ setValue()

void KoFakeProgressProxy::setValue ( int value)
overridevirtual

Implements KoProgressProxy.

Definition at line 20 of file KoFakeProgressProxy.cpp.

21{
22 Q_UNUSED(value);
23}
float value(const T *src, size_t ch)

References value().


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