Changeset View
Changeset View
Standalone View
Standalone View
tests/knotificationdbustest.cpp
Show All 34 Lines | 30 | { | |||
---|---|---|---|---|---|
35 | args.append(QString()); // app_name | 35 | args.append(QString()); // app_name | ||
36 | args.append((uint)0); // notification to update | 36 | args.append((uint)0); // notification to update | ||
37 | args.append(iconName); // app_icon | 37 | args.append(iconName); // app_icon | ||
38 | args.append(title); // summary | 38 | args.append(title); // summary | ||
39 | args.append(body); // body | 39 | args.append(body); // body | ||
40 | 40 | | |||
41 | QStringList actionList; | 41 | QStringList actionList; | ||
42 | int actId = 0; | 42 | int actId = 0; | ||
43 | Q_FOREACH (const QString &actionName, actions) { | 43 | for (const QString &actionName : actions) { | ||
44 | actId++; | 44 | actId++; | ||
45 | actionList.append(QString::number(actId)); | 45 | actionList.append(QString::number(actId)); | ||
46 | actionList.append(actionName); | 46 | actionList.append(actionName); | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | args.append(actionList); // actions | 49 | args.append(actionList); // actions | ||
50 | 50 | | |||
51 | args.append(QVariantMap()); // hints | 51 | args.append(QVariantMap()); // hints | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |