mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
36 lines
1.1 KiB
C
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();
|
||
|
}
|