Try harder in matching the method signature
authorDirk Mueller <mueller@kde.org>
Fri, 4 Jan 2013 16:40:54 +0000 (17:40 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 7 Jan 2013 12:37:57 +0000 (13:37 +0100)
commit0c22eb9d9d1a0b72622fdf16ebf60712336b449e
treec45bc74fd56d62c9d31add85d8e8132633403fd4
parent297291c732abbda6d185042553227178d3f7d879
Try harder in matching the method signature

In cases where the Propertiesdialog has no specific Implementation
for a dbus data type, it creates a regular QLineEdit. In such cases,
qdbusviewer then tried to call the method with the arg set to a string
instead of the real datatype (for example uint64), which usually does not work.

We can be more clever and try to implicitely convert the user input
to the right datatype, which makes the invocation succeed.

Change-Id: Idbb5c667496e14922efb7d195e11fafbb880c61c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/qdbus/qdbusviewer/qdbusviewer.cpp