QGIS/plugins/spit/qgsscangeometries.ui.h
2004-12-20 07:13:35 +00:00

36 lines
1.1 KiB
C

/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions or slots use
** Qt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/
#include <qtimer.h>
#include <qapplication.h>
void QgsScanGeometries::init()
{
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(timerFired()));
timer->start(100);
}
void QgsScanGeometries::setFileInfo( QString info)
{
lblFileInfo->setText(info);
progressBar1->setTotalSteps(0);
progressBar1->setProgress(0);
}
void QgsScanGeometries::setStatus( int status )
{
progressBar1->setProgress(progressBar1->progress() +2);
}
void QgsScanGeometries::timerFired()
{
progressBar1->setProgress(progressBar1->progress() +10);
qApp->processEvents();
}