while( aFuture.isRunning() ) {
if ( aZIProgress ) {
aZIProgress->Show( Standard_True );
- QThread::usleep(500);
+ QThread::msleep(200);
}
}
//DEBTRACE("aZIProgress=" << aZIProgress);
while( aFuture.isRunning() ) {
if ( aSIProgress ) {
aSIProgress->Show( Standard_True );
- QThread::usleep(500);
+ QThread::msleep(200);
}
}
#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_SIProgressIndicator, Message_ProgressIndicator)
Standard_Boolean HYDROGUI_SIProgressIndicator::Show(const Standard_Boolean theForce)
{
Standard_Real aPosition = GetPosition();
+ myCount++;
+ if (theForce)
+ DEBTRACE("aPosition=" << aPosition << " myCount:" <<myCount);
Standard_Boolean isUserBreak = UserBreak();
bool isFinished = aPosition >= 1 || ( isUserBreak && GetNbScopes() < 2 );
setButtonText( Cancel, tr("CANCEL") );
setButtonEnabled( true, Cancel );
myUserBreak = Standard_False;
+ myCount = 0;
}
void HYDROGUI_SIProgressIndicator::reject()
private:
QProgressBar* myBar;
Standard_Boolean myUserBreak;
+ int myCount;
public:
DEFINE_STANDARD_RTTIEXT (HYDROGUI_SIProgressIndicator, Message_ProgressIndicator)
#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_ZIProgressIndicator, Message_ProgressIndicator)
{
Standard_Boolean isUserBreak = UserBreak();
Standard_Real aPosition = GetPosition();
+ myCount++;
+ if (theForce)
+ DEBTRACE("aPosition=" << aPosition << " myCount:" <<myCount);
if ( !theForce ) {
// quadtree
setButtonText( Cancel, tr("CANCEL") );
setButtonEnabled( true, Cancel );
myUserBreak = Standard_False;
+ myCount = 0;
}
void HYDROGUI_ZIProgressIndicator::reject()
Standard_Real myQuadTreePosition;
Standard_Boolean myUserBreak;
+ int myCount;
public:
DEFINE_STANDARD_RTTIEXT (HYDROGUI_ZIProgressIndicator, Message_ProgressIndicator)