Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/applet_p.cpp
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Line(s) | 137 | #endif | |||
---|---|---|---|---|---|
179 | } else { | 179 | } else { | ||
180 | q->setLaunchErrorMessage( | 180 | q->setLaunchErrorMessage( | ||
181 | i18nc("API or programming language the widget was written in, name of the widget", | 181 | i18nc("API or programming language the widget was written in, name of the widget", | ||
182 | "Could not create a %1 ScriptEngine for the %2 widget.", | 182 | "Could not create a %1 ScriptEngine for the %2 widget.", | ||
183 | api, appletDescription.name())); | 183 | api, appletDescription.name())); | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | if (!q->isContainment()) { | 186 | if (!q->isContainment()) { | ||
187 | QAction *a = new QAction(QIcon::fromTheme(QStringLiteral("preferences-desktop-default-applications")), i18n("Alternatives..."), q); | 187 | QAction *a = new QAction(QIcon::fromTheme(QStringLiteral("widget-alternatives")), i18n("Show Alternatives..."), q); | ||
188 | a->setVisible(false); | 188 | a->setVisible(false); | ||
189 | q->actions()->addAction(QStringLiteral("alternatives"), a); | 189 | q->actions()->addAction(QStringLiteral("alternatives"), a); | ||
190 | QObject::connect(a, &QAction::triggered, [this] { | 190 | QObject::connect(a, &QAction::triggered, [this] { | ||
191 | if (q->containment()) { | 191 | if (q->containment()) { | ||
192 | emit q->containment()->appletAlternativesRequested(q); | 192 | emit q->containment()->appletAlternativesRequested(q); | ||
193 | } | 193 | } | ||
194 | }); | 194 | }); | ||
195 | 195 | | |||
▲ Show 20 Lines • Show All 411 Lines • Show Last 20 Lines |