zoomout is moving to desktop/plasmaapp

svn path=/trunk/KDE/kdelibs/; revision=941581
This commit is contained in:
Chani Armitage 2009-03-20 00:36:04 +00:00
parent 73073b7a54
commit 111e6a60c3

View File

@ -180,14 +180,12 @@ void Containment::init()
zoomAction->setShortcuts(keys); zoomAction->setShortcuts(keys);
d->actions().addAction("zoom in", zoomAction); d->actions().addAction("zoom in", zoomAction);
zoomAction = new KAction(i18n("Zoom Out"), this);
zoomAction->setIcon(KIcon("zoom-out"));
connect(zoomAction, SIGNAL(triggered(bool)), this, SLOT(zoomOut()));
zoomAction->setShortcut(QKeySequence("alt+d,-"));
d->actions().addAction("zoom out", zoomAction);
if (corona()) { if (corona()) {
QAction *action = corona()->action("add sibling containment"); QAction *action = corona()->action("zoom out");
if (action) {
d->actions().addAction("zoom out", action);
}
action = corona()->action("add sibling containment");
if (action) { if (action) {
d->actions().addAction("add sibling containment", action); d->actions().addAction("add sibling containment", action);
} }
@ -196,7 +194,6 @@ void Containment::init()
if (d->type == DesktopContainment && d->toolBox) { if (d->type == DesktopContainment && d->toolBox) {
d->toolBox->addTool(this->action("add widgets")); d->toolBox->addTool(this->action("add widgets"));
d->toolBox->addTool(this->action("zoom in")); d->toolBox->addTool(this->action("zoom in"));
d->toolBox->addTool(this->action("zoom out"));
//TODO: do we need some way to allow this be overridden? //TODO: do we need some way to allow this be overridden?
// it's always available because shells rely on this // it's always available because shells rely on this