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 bool isCanceled() const
Tells whether the operation has been canceled already.
void cancel()
Tells the internal routines that the current operation should be canceled. This should be run by the ...
void setProgress(double progress)
Sets the current progress for the feedback object.
Base class for feedback objects to be used for cancellation of something running in a worker thread...
double progress() const
Returns the current progress reported by the feedback object.
QgsFeedback(QObject *parent=nullptr)
Construct a feedback object.