aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-06 15:28:20 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-07 11:44:07 -0300
commit9257cd1783c96401b4736e48b1f9741624183124 (patch)
tree19a6f8a63e7b325f841af2f05bbc2a78b7a6cbb0 /libpyside
parent15b0e9aa2b16109aa293ab446a8edc533af56658 (diff)
Changed name of qproperty functions
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/dynamicqmetaobject.cpp20
-rw-r--r--libpyside/pyside.cpp2
-rw-r--r--libpyside/qproperty.cpp28
-rw-r--r--libpyside/qproperty.h28
-rw-r--r--libpyside/signalmanager.cpp8
5 files changed, 43 insertions, 43 deletions
diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp
index f8902c6bf..89a35ef2a 100644
--- a/libpyside/dynamicqmetaobject.cpp
+++ b/libpyside/dynamicqmetaobject.cpp
@@ -159,39 +159,39 @@ uint PropertyData::flags() const
else if (!isQRealType(typeName))
flags |= qvariant_nameToType(typeName) << 24;
- if (qproperty_is_readble(m_data))
+ if (qpropertyIsReadable(m_data))
flags |= Readable;
- if (qproperty_is_writable(m_data))
+ if (qpropertyIsWritable(m_data))
flags |= Writable;
- if (qproperty_has_reset(m_data))
+ if (qpropertyHasReset(m_data))
flags |= Resettable;
- if (!qproperty_is_designable(m_data))
+ if (!qpropertyIsDesignable(m_data))
flags |= ResolveDesignable;
else
flags |= Designable;
- if (!qproperty_is_scriptable(m_data))
+ if (!qpropertyIsScriptable(m_data))
flags |= ResolveScriptable;
else
flags |= Scriptable;
- if (!qproperty_is_stored(m_data))
+ if (!qpropertyIsStored(m_data))
flags |= ResolveStored;
else
flags |= Stored;
- if (!qproperty_is_user(m_data))
+ if (!qpropertyIsUser(m_data))
flags |= ResolveUser;
else
flags |= User;
- if (qproperty_is_constant(m_data))
+ if (qpropertyIsConstant(m_data))
flags |= Constant;
- if (qproperty_is_final(m_data))
+ if (qpropertyIsFinal(m_data))
flags |= Final;
return flags;
@@ -255,7 +255,7 @@ PropertyData::PropertyData(const char* name, PyObject* data)
QByteArray PropertyData::type() const
{
- return QByteArray(qproperty_get_type(m_data));
+ return QByteArray(qpropertyGetType(m_data));
}
diff --git a/libpyside/pyside.cpp b/libpyside/pyside.cpp
index 9b8c4ccfe..bb22fa789 100644
--- a/libpyside/pyside.cpp
+++ b/libpyside/pyside.cpp
@@ -69,7 +69,7 @@ bool fillQtProperties(PyObject* qObj, const QMetaObject* metaObj, PyObject* kwds
} else {
PyObject* attr = PyObject_GenericGetAttr(qObj, key);
if (isQPropertyType(attr))
- PySide::qproperty_set(attr, qObj, value);
+ PySide::qpropertySet(attr, qObj, value);
}
} else {
propName.append("()");
diff --git a/libpyside/qproperty.cpp b/libpyside/qproperty.cpp
index 7a35edb6b..32ff8a87b 100644
--- a/libpyside/qproperty.cpp
+++ b/libpyside/qproperty.cpp
@@ -164,7 +164,7 @@ bool isQPropertyType(PyObject* pyObj)
return false;
}
-int qproperty_set(PyObject* self, PyObject* source, PyObject* value)
+int qpropertySet(PyObject* self, PyObject* source, PyObject* value)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
if (data->fset) {
@@ -181,7 +181,7 @@ int qproperty_set(PyObject* self, PyObject* source, PyObject* value)
return -1;
}
-PyObject* qproperty_get(PyObject* self, PyObject* source)
+PyObject* qpropertyGet(PyObject* self, PyObject* source)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
if (data->fget) {
@@ -193,7 +193,7 @@ PyObject* qproperty_get(PyObject* self, PyObject* source)
return 0;
}
-int qproperty_reset(PyObject* self, PyObject* source)
+int qpropertyReset(PyObject* self, PyObject* source)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
if (data->freset) {
@@ -207,13 +207,13 @@ int qproperty_reset(PyObject* self, PyObject* source)
}
-const char* qproperty_get_type(PyObject* self)
+const char* qpropertyGetType(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->typeName;
}
-PyObject* qproperty_get_object(PyObject* source, PyObject* name)
+PyObject* qpropertyGetObject(PyObject* source, PyObject* name)
{
PyObject* attr = PyObject_GenericGetAttr(source, name);
if (attr && isQPropertyType(attr))
@@ -249,55 +249,55 @@ char* translate_type_name(PyObject* type)
return 0;
}
-bool qproperty_is_readble(PyObject* self)
+bool qpropertyIsReadable(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return (data->fget != 0);
}
-bool qproperty_is_writable(PyObject* self)
+bool qpropertyIsWritable(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return (data->fset != 0);
}
-bool qproperty_has_reset(PyObject* self)
+bool qpropertyHasReset(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return (data->freset != 0);
}
-bool qproperty_is_designable(PyObject* self)
+bool qpropertyIsDesignable(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->designable;
}
-bool qproperty_is_scriptable(PyObject* self)
+bool qpropertyIsScriptable(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->scriptable;
}
-bool qproperty_is_stored(PyObject* self)
+bool qpropertyIsStored(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->stored;
}
-bool qproperty_is_user(PyObject* self)
+bool qpropertyIsUser(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->user;
}
-bool qproperty_is_constant(PyObject* self)
+bool qpropertyIsConstant(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->constant;
}
-bool qproperty_is_final(PyObject* self)
+bool qpropertyIsFinal(PyObject* self)
{
QPropertyData *data = reinterpret_cast<QPropertyData*>(self);
return data->final;
diff --git a/libpyside/qproperty.h b/libpyside/qproperty.h
index 56ed32f51..645a46855 100644
--- a/libpyside/qproperty.h
+++ b/libpyside/qproperty.h
@@ -46,7 +46,7 @@ PYSIDE_API bool isQPropertyType(PyObject* pyObj);
* @param value The value to set in property
* @return Return 0 if ok or -1 if this function fail
**/
-PYSIDE_API int qproperty_set(PyObject* self, PyObject* source, PyObject* value);
+PYSIDE_API int qpropertySet(PyObject* self, PyObject* source, PyObject* value);
/**
* This function call get property function
@@ -56,7 +56,7 @@ PYSIDE_API int qproperty_set(PyObject* self, PyObject* source, PyObject* value);
* @param source The QObject witch has the property
* @return Return the result of property get function or 0 if this fail
**/
-PYSIDE_API PyObject* qproperty_get(PyObject* self, PyObject* source);
+PYSIDE_API PyObject* qpropertyGet(PyObject* self, PyObject* source);
/**
* This function call reset property function
@@ -66,7 +66,7 @@ PYSIDE_API PyObject* qproperty_get(PyObject* self, PyObject* source);
* @param source The QObject witch has the property
* @return Return 0 if ok or -1 if this function fail
**/
-PYSIDE_API int qproperty_reset(PyObject* self, PyObject* source);
+PYSIDE_API int qpropertyReset(PyObject* self, PyObject* source);
/**
@@ -76,7 +76,7 @@ PYSIDE_API int qproperty_reset(PyObject* self, PyObject* source);
* @param self The property object
* @return Return the property type name
**/
-PYSIDE_API const char* qproperty_get_type(PyObject* self);
+PYSIDE_API const char* qpropertyGetType(PyObject* self);
/**
* This function search in the source object for desired property
@@ -85,7 +85,7 @@ PYSIDE_API const char* qproperty_get_type(PyObject* self);
* @param name The property name
* @return Return a new reference to property object
**/
-PYSIDE_API PyObject* qproperty_get_object(PyObject* source, PyObject* name);
+PYSIDE_API PyObject* qpropertyGetObject(PyObject* source, PyObject* name);
/**
@@ -95,7 +95,7 @@ PYSIDE_API PyObject* qproperty_get_object(PyObject* source, PyObject* name);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_readble(PyObject* self);
+PYSIDE_API bool qpropertyIsReadable(PyObject* self);
/**
* This function check if property has write function
@@ -104,7 +104,7 @@ PYSIDE_API bool qproperty_is_readble(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_writable(PyObject* self);
+PYSIDE_API bool qpropertyIsWritable(PyObject* self);
/**
* This function check if property has reset function
@@ -113,7 +113,7 @@ PYSIDE_API bool qproperty_is_writable(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_has_reset(PyObject* self);
+PYSIDE_API bool qpropertyHasReset(PyObject* self);
/**
* This function check if property has the flag DESIGNABLE setted
@@ -122,7 +122,7 @@ PYSIDE_API bool qproperty_has_reset(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_designable(PyObject* self);
+PYSIDE_API bool qpropertyIsDesignable(PyObject* self);
/**
* This function check if property has the flag SCRIPTABLE setted
@@ -131,7 +131,7 @@ PYSIDE_API bool qproperty_is_designable(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_scriptable(PyObject* self);
+PYSIDE_API bool qpropertyIsScriptable(PyObject* self);
/**
* This function check if property has the flag STORED setted
@@ -140,7 +140,7 @@ PYSIDE_API bool qproperty_is_scriptable(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_stored(PyObject* self);
+PYSIDE_API bool qpropertyIsStored(PyObject* self);
/**
* This function check if property has the flag USER setted
@@ -149,7 +149,7 @@ PYSIDE_API bool qproperty_is_stored(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_user(PyObject* self);
+PYSIDE_API bool qpropertyIsUser(PyObject* self);
/**
* This function check if property has the flag CONSTANT setted
@@ -158,7 +158,7 @@ PYSIDE_API bool qproperty_is_user(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_constant(PyObject* self);
+PYSIDE_API bool qpropertyIsConstant(PyObject* self);
/**
* This function check if property has the flag FINAL setted
@@ -167,7 +167,7 @@ PYSIDE_API bool qproperty_is_constant(PyObject* self);
* @param self The property object
* @return Return a boolean value
**/
-PYSIDE_API bool qproperty_is_final(PyObject* self);
+PYSIDE_API bool qpropertyIsFinal(PyObject* self);
} //namespace PySide
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index b8e97f922..c770fbac0 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -363,7 +363,7 @@ int SignalManager::qt_metacall(QObject* object, QMetaObject::Call call, int id,
return id - metaObject->methodCount();
pp_name = PyString_FromString(mp.name());
- pp = qproperty_get_object(pySelf, pp_name);
+ pp = qpropertyGetObject(pySelf, pp_name);
if (!pp) {
qWarning("Invalid property.");
Py_XDECREF(pp_name);
@@ -376,7 +376,7 @@ int SignalManager::qt_metacall(QObject* object, QMetaObject::Call call, int id,
#ifndef QT_NO_PROPERTIES
case QMetaObject::ReadProperty:
{
- PyObject* value = qproperty_get(pp, pySelf);
+ PyObject* value = qpropertyGet(pp, pySelf);
if (value) {
void *data = typeResolver->toCpp(value);
if (Shiboken::TypeResolver::getType(mp.typeName()) == Shiboken::TypeResolver::ObjectType)
@@ -394,12 +394,12 @@ int SignalManager::qt_metacall(QObject* object, QMetaObject::Call call, int id,
case QMetaObject::WriteProperty:
{
Shiboken::AutoDecRef value(typeResolver->toPython(args[0]));
- qproperty_set(pp, pySelf, value);
+ qpropertySet(pp, pySelf, value);
break;
}
case QMetaObject::ResetProperty:
- qproperty_reset(pp, pp_name);
+ qpropertyReset(pp, pp_name);
break;
case QMetaObject::QueryPropertyDesignable: