1a2f3453eSEric Blake// Use QDict macros where they make sense
2a2f3453eSEric Blake@@
3a2f3453eSEric Blakeexpression Obj, Key, E;
4a2f3453eSEric Blake@@
5*a92c2159SEric Blake(
6a2f3453eSEric Blake- qdict_put_obj(Obj, Key, QOBJECT(E));
7a2f3453eSEric Blake+ qdict_put(Obj, Key, E);
8*a92c2159SEric Blake|
9*a92c2159SEric Blake- qdict_put(Obj, Key, qint_from_int(E));
10*a92c2159SEric Blake+ qdict_put_int(Obj, Key, E);
11*a92c2159SEric Blake|
12*a92c2159SEric Blake- qdict_put(Obj, Key, qbool_from_bool(E));
13*a92c2159SEric Blake+ qdict_put_bool(Obj, Key, E);
14*a92c2159SEric Blake|
15*a92c2159SEric Blake- qdict_put(Obj, Key, qstring_from_str(E));
16*a92c2159SEric Blake+ qdict_put_str(Obj, Key, E);
17*a92c2159SEric Blake)
18a2f3453eSEric Blake
19a2f3453eSEric Blake// Use QList macros where they make sense
20a2f3453eSEric Blake@@
21a2f3453eSEric Blakeexpression Obj, E;
22a2f3453eSEric Blake@@
23*a92c2159SEric Blake(
24a2f3453eSEric Blake- qlist_append_obj(Obj, QOBJECT(E));
25a2f3453eSEric Blake+ qlist_append(Obj, E);
26*a92c2159SEric Blake|
27*a92c2159SEric Blake- qlist_append(Obj, qint_from_int(E));
28*a92c2159SEric Blake+ qlist_append_int(Obj, E);
29*a92c2159SEric Blake|
30*a92c2159SEric Blake- qlist_append(Obj, qbool_from_bool(E));
31*a92c2159SEric Blake+ qlist_append_bool(Obj, E);
32*a92c2159SEric Blake|
33*a92c2159SEric Blake- qlist_append(Obj, qstring_from_str(E));
34*a92c2159SEric Blake+ qlist_append_str(Obj, E);
35*a92c2159SEric Blake)
36