Пример #1
0
void MapWidget::showCoordinates(double lat, double lon)
{
    center=osmscout::GeoCoord(lat,lon);
    this->magnification=osmscout::Magnification::magVeryClose;
    DBThread* dbThread = DBThread::GetInstance();
    if(!dbThread->IsRendering())
        TriggerMapRendering();
}
Пример #2
0
//-------------------------------------------------------------------------------------
thread::TPThread* DBThreadPool::createThread(int threadWaitSecond, bool threadStartsImmediately)
{
	DBThread* tptd = new DBThread(dbinterfaceName_, this, threadWaitSecond);

	if (threadStartsImmediately)
		tptd->createThread();

	return tptd;
}	
Пример #3
0
void DBConnector::RunConnect(){
    DBThread* thread = new DBThread();
    thread->setConnectionData(m_connData);
    QObject::connect(thread, SIGNAL(started()), MyApplication::TheApp(), SIGNAL(startBusy()));
    QObject::connect(thread, SIGNAL(finished()), MyApplication::TheApp(), SIGNAL(finishBusy()));
    QObject::connect(thread, SIGNAL(fireResult(bool)), this, SLOT(obtainThreadResult(bool)));

    thread->start();
}
Пример #4
0
//-------------------------------------------------------------------------------------
thread::TPThread* DBThreadPool::createThread(int threadWaitSecond)
{
	DBThread* tptd = new DBThread(this, threadWaitSecond);
	tptd->createThread();
	return tptd;
}