Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/applet_p.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | |||||
116 | void AppletPrivate::init(const QString &_packagePath, const QVariantList &args) | 116 | void AppletPrivate::init(const QString &_packagePath, const QVariantList &args) | ||
117 | { | 117 | { | ||
118 | // WARNING: do not access config() OR globalConfig() in this method! | 118 | // WARNING: do not access config() OR globalConfig() in this method! | ||
119 | // that requires a Corona, which is not available at this point | 119 | // that requires a Corona, which is not available at this point | ||
120 | q->setHasConfigurationInterface(true); | 120 | q->setHasConfigurationInterface(true); | ||
121 | 121 | | |||
122 | QAction *closeApplet = actions->action(QStringLiteral("remove")); | 122 | QAction *closeApplet = actions->action(QStringLiteral("remove")); | ||
123 | if (closeApplet) { | 123 | if (closeApplet) { | ||
124 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove this %1", q->title())); | 124 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove %1", q->title())); | ||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | QAction *configAction = actions->action(QStringLiteral("configure")); | 127 | QAction *configAction = actions->action(QStringLiteral("configure")); | ||
128 | if (configAction) { | 128 | if (configAction) { | ||
129 | configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", q->title().replace(QLatin1Char('&'), QStringLiteral("&&")))); | 129 | configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", q->title().replace(QLatin1Char('&'), QStringLiteral("&&")))); | ||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | if (!appletDescription.isValid()) { | 132 | if (!appletDescription.isValid()) { | ||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |