Changeset View
Changeset View
Standalone View
Standalone View
src/backends/policykit/kauth-policy-gen-polkit.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
60 | } | 60 | } | ||
61 | if (domain.contains(QLatin1String("vendorurl"))) { | 61 | if (domain.contains(QLatin1String("vendorurl"))) { | ||
62 | out << "<vendor_url>" << domain[QLatin1String("vendorurl")] << "</vendor_url>\n"; | 62 | out << "<vendor_url>" << domain[QLatin1String("vendorurl")] << "</vendor_url>\n"; | ||
63 | } | 63 | } | ||
64 | if (domain.contains(QLatin1String("icon"))) { | 64 | if (domain.contains(QLatin1String("icon"))) { | ||
65 | out << "<icon_name>" << domain[QLatin1String("icon")] << "</icon_name>\n"; | 65 | out << "<icon_name>" << domain[QLatin1String("icon")] << "</icon_name>\n"; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | foreach (const Action &action, actions) { | 68 | for (const Action &action : qAsConst(actions)) { | ||
69 | out << dent << "<action id=\"" << action.name << "\" >\n"; | 69 | out << dent << "<action id=\"" << action.name << "\" >\n"; | ||
70 | 70 | | |||
71 | for (QHash< QString, QString >::const_iterator i = action.messages.constBegin(); i != action.messages.constEnd(); ++i) { | 71 | for (QHash< QString, QString >::const_iterator i = action.messages.constBegin(); i != action.messages.constEnd(); ++i) { | ||
72 | out << dent << dent << "<description"; | 72 | out << dent << dent << "<description"; | ||
73 | if (i.key() != QLatin1String("en")) { | 73 | if (i.key() != QLatin1String("en")) { | ||
74 | out << " xml:lang=\"" << i.key() << '"'; | 74 | out << " xml:lang=\"" << i.key() << '"'; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |