##// END OF EJS Templates
added methods to qt namespace...
added methods to qt namespace git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@71 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r35:b8dce620ba5c
Show More
PythonQtWrapper_QMutex.cpp
32 lines | 702 B | text/x-c | CppLexer
#include "PythonQtWrapper_QMutex.h"
#include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
#include <QVariant>
#include <qmutex.h>
QMutex* PythonQtWrapper_QMutex::new_QMutex(QMutex::RecursionMode mode)
{
return new QMutex(mode); }
void PythonQtWrapper_QMutex::lock(QMutex* theWrappedObject)
{
theWrappedObject->lock();
}
bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject, int timeout)
{
return theWrappedObject->tryLock(timeout);
}
void PythonQtWrapper_QMutex::unlock(QMutex* theWrappedObject)
{
theWrappedObject->unlock();
}
bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject)
{
return theWrappedObject->tryLock();
}