*use standard qkeysequences for zooming
*also keep the ctrl-= for zoom-in so that people with US keyboards don't have to press shift svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815524
This commit is contained in:
parent
51e98af62f
commit
2048a57f54
@ -160,14 +160,18 @@ void Containment::init()
|
||||
zoomAction->setIcon(KIcon("zoom-in"));
|
||||
connect(zoomAction, SIGNAL(triggered(bool)), this, SLOT(zoomIn()));
|
||||
zoomAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
|
||||
zoomAction->setShortcut(QKeySequence("ctrl+="));
|
||||
//two shortcuts because I hate ctrl-+ but others expect it
|
||||
QList<QKeySequence> keys;
|
||||
keys << QKeySequence(QKeySequence::ZoomIn);
|
||||
keys <<QKeySequence("ctrl+=");
|
||||
zoomAction->setShortcuts(keys);
|
||||
d->actions().addAction("zoom in", zoomAction);
|
||||
|
||||
zoomAction = new QAction(i18n("Zoom Out"), this);
|
||||
zoomAction->setIcon(KIcon("zoom-out"));
|
||||
connect(zoomAction, SIGNAL(triggered(bool)), this, SLOT(zoomOut()));
|
||||
zoomAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
|
||||
zoomAction->setShortcut(QKeySequence("ctrl+-"));
|
||||
zoomAction->setShortcut(QKeySequence(QKeySequence::ZoomOut));
|
||||
d->actions().addAction("zoom out", zoomAction);
|
||||
|
||||
QAction *activityAction = new QAction(i18n("Add Activity"), this);
|
||||
|
Loading…
Reference in New Issue
Block a user