21 #include "qgis_core.h" 66 if ( static_cast< int >( mProgress * 10 ) != static_cast< int >( progress * 10 ) )
67 emit progressChanged( progress );
105 void progressChanged(
double progress );
109 bool mCanceled =
false;
111 double mProgress = 0.0;
114 #endif // QGSFEEDBACK_H
void cancel()
Tells the internal routines that the current operation should be canceled. This should be run by the ...
double progress() const
Returns the current progress reported by the feedback object.
void setProgress(double progress)
Sets the current progress for the feedback object.
Base class for feedback objects to be used for cancelation of something running in a worker thread...
bool isCanceled() const
Tells whether the operation has been canceled already.
QgsFeedback(QObject *parent=nullptr)
Construct a feedback object.