Hi,
I have a code, it is in qt-3.2 and in that code there has two function, startcapture() and stopcapture().

In the startcapture() function, it has a sommand
start(); // start our own thread

I think it is for start the thread. and it is working

but In stopcapture ther has a command

QWaitCondition m_CaptureFinished;

if (running()) {
m_StopCapture = true;
m_CaptureFinished.wait();
qDebug("Capture thread stopped.");
}

I need to run it in QT4.3. I try for this, but when i make the program, it display an error like this,
================================================== ==========
error: ‘running’ was not declared in this scope

error: no matching function for call to ‘QWaitCondition::wait()’

/usr/local/Trolltech/Qt-4.3.0/include/QtCore/qwaitcondition.h:44: note: candidates are: bool QWaitCondition::wait(QMutex*, long unsigned int)

================================================== ==============

please help me