Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/containment.cpp
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 91 | { | |||
---|---|---|---|---|---|
117 | //btw, do we really want to use title() when it's a desktopcontainment? | 117 | //btw, do we really want to use title() when it's a desktopcontainment? | ||
118 | QAction *closeApplet = actions()->action(QStringLiteral("remove")); | 118 | QAction *closeApplet = actions()->action(QStringLiteral("remove")); | ||
119 | if (closeApplet) { | 119 | if (closeApplet) { | ||
120 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove %1", title())); | 120 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove %1", title())); | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | QAction *configAction = actions()->action(QStringLiteral("configure")); | 123 | QAction *configAction = actions()->action(QStringLiteral("configure")); | ||
124 | if (configAction) { | 124 | if (configAction) { | ||
125 | if (d->type == Types::PanelContainment || d->type == Types::CustomPanelContainment) { | ||||
126 | configAction->setText(i18nc("%1 is the name of the containment", "Edit %1...", title())); | ||||
davidedmundson: "name of the containment" surely? | |||||
127 | configAction->setIcon(QIcon::fromTheme(QStringLiteral("document-edit"))); | ||||
128 | } else { | ||||
125 | configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", title())); | 129 | configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", title())); | ||
126 | } | 130 | } | ||
131 | } | ||||
127 | 132 | | |||
128 | QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); | 133 | QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); | ||
129 | if (appletBrowserAction) { | 134 | if (appletBrowserAction) { | ||
130 | appletBrowserAction->setVisible(unlocked); | 135 | appletBrowserAction->setVisible(unlocked); | ||
131 | appletBrowserAction->setEnabled(unlocked); | 136 | appletBrowserAction->setEnabled(unlocked); | ||
132 | connect(appletBrowserAction, SIGNAL(triggered()), this, SLOT(triggerShowAddWidgets())); | 137 | connect(appletBrowserAction, SIGNAL(triggered()), this, SLOT(triggerShowAddWidgets())); | ||
133 | } | 138 | } | ||
134 | 139 | | |||
▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines |
"name of the containment" surely?