summaryrefslogtreecommitdiffstats
path: root/tools/qdbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-02 10:49:55 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 10:49:55 (GMT)
commite76a5a08e4e46a49a28e6aa338c4a27acc715dc2 (patch)
treed2543adfeaf56663ace84bf59bc22211dac687d8 /tools/qdbus
parent9a90dab23bd1bd37bd4a7aace588896d2ae7e9d9 (diff)
parent200286b8e83918e785b61e4695443a3b77ebeaea (diff)
downloadQt-e76a5a08e4e46a49a28e6aa338c4a27acc715dc2.zip
Qt-e76a5a08e4e46a49a28e6aa338c4a27acc715dc2.tar.gz
Qt-e76a5a08e4e46a49a28e6aa338c4a27acc715dc2.tar.bz2
Merge branch 'research/qdbus-improvements'
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 5d1ac32..b8b9338 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;
}