mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2526 c8812cc2-4d05-0410-92ff-de0c093fc19c
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();
|
|
}
|