summaryrefslogtreecommitdiffstats
path: root/tools/qdbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-01 17:52:48 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 11:43:46 +0200
commit232f7af78d152518ccdcaaf1f42f89abb048ae5f (patch)
tree3722797142a3121834603d0dd3d0d6f2793b210e /tools/qdbus
parent43a760280edd49382d01eb1e23ae2a08933b6bf7 (diff)
Replace internalPropGet and internalPropSet with the QObject versions in QDBusAbstractInterface.
They're now good enough and as fast. Reviewed-By: Marius Bugge Monsen
Diffstat (limited to 'tools/qdbus')
-rw-r--r--tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp b/tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp
index 5d1ac32bb0..b8b93387e3 100644
--- a/tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp
+++ b/tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp
@@ -613,18 +613,15 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf
// getter:
if (property.access != QDBusIntrospection::Property::Write) {
- hs << " inline " << type << " " << getter << "() const" << endl;
- if (type != "QVariant")
- hs << " { return qvariant_cast< " << type << " >(internalPropGet(\""
- << property.name << "\")); }" << endl;
- else
- hs << " { return internalPropGet(\"" << property.name << "\"); }" << endl;
+ hs << " inline " << type << " " << getter << "() const" << endl
+ << " { return qvariant_cast< " << type << " >(property(\""
+ << property.name << "\")); }" << endl;
}
// setter:
if (property.access != QDBusIntrospection::Property::Read) {
hs << " inline void " << setter << "(" << constRefArg(type) << "value)" << endl
- << " { internalPropSet(\"" << property.name
+ << " { setProperty(\"" << property.name
<< "\", qVariantFromValue(value)); }" << endl;
}