summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/mainwindowsnippet.cpp
diff options
context:
space:
mode:
authorJanne Koskinen <janne.p.koskinen@digia.com>2010-04-16 10:53:08 (GMT)
committerJanne Koskinen <janne.p.koskinen@digia.com>2010-04-19 17:28:59 (GMT)
commitc16ca6d08d7e3e7a0972aa1975a72882559edb26 (patch)
tree3927dde86d9e45e9e2ca47648fcb32c54f75cf45 /doc/src/snippets/mainwindowsnippet.cpp
parente0314fa999e58a057604cdbd4bd6fdfe5248d75e (diff)
downloadQt-c16ca6d08d7e3e7a0972aa1975a72882559edb26.zip
Qt-c16ca6d08d7e3e7a0972aa1975a72882559edb26.tar.gz
Qt-c16ca6d08d7e3e7a0972aa1975a72882559edb26.tar.bz2
WINSCW compile fix for HashMap
WINSCW with templates function declarations and definitions will have to use same names for variables or you get 'undefined identifier' Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'doc/src/snippets/mainwindowsnippet.cpp')
0 files changed, 0 insertions, 0 deletions
cial exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] QString value = retrieveValue(); QDBusMessage reply; QDBusReply<int> api = interface->call(QLatin1String("GetAPIVersion")); if (api >= 14) reply = interface->call(QLatin1String("ProcessWorkUnicode"), value); else reply = interface->call(QLatin1String("ProcessWork"), QLatin1String("UTF-8"), value.toUtf8()); //! [0] //! [1] QString value = retrieveValue(); QDBusPendingCall pcall = interface->asyncCall(QLatin1String("Process"), value); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pcall, this); QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(callFinishedSlot(QDBusPendingCallWatcher*))); //! [1]