[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kate] part/view: Shortcuts for Enlarge/Shrink Font menu items
From:       Christian Loose <christian.loose () hamburg ! de>
Date:       2011-08-23 17:53:57
Message-ID: 20110823175357.20791A6078 () git ! kde ! org
[Download RAW message or body]

Git commit 51d73dca503c494d82b123c2f4f3841f83cd5b32 by Christian Loose.
Committed on 21/08/2011 at 18:36.
Pushed by cloose into branch 'master'.

Shortcuts for Enlarge/Shrink Font menu items

Give the 'Enlarge Font'/'Shrink Font' actions the standard shortcuts
for Zoom In/Out.

FEATURE: 196573
FIXED-IN: 4.8.0

M  +2    -0    part/view/kateview.cpp

http://commits.kde.org/kate/51d73dca503c494d82b123c2f4f3841f83cd5b32

diff --git a/part/view/kateview.cpp b/part/view/kateview.cpp
index f8d95e4..2ed5a64 100644
--- a/part/view/kateview.cpp
+++ b/part/view/kateview.cpp
@@ -481,12 +481,14 @@ void KateView::setupActions()
   a = ac->addAction("view_inc_font_sizes");
   a->setIcon(KIcon("zoom-in"));
   a->setText(i18n("Enlarge Font"));
+  a->setShortcut(KStandardShortcut::zoomIn());
   a->setWhatsThis(i18n("This increases the display font size."));
   connect(a, SIGNAL(triggered(bool)), m_viewInternal, SLOT(slotIncFontSizes()));
 
   a = ac->addAction("view_dec_font_sizes");
   a->setIcon(KIcon("zoom-out"));
   a->setText(i18n("Shrink Font"));
+  a->setShortcut(KStandardShortcut::zoomOut());
   a->setWhatsThis(i18n("This decreases the display font size."));
   connect(a, SIGNAL(triggered(bool)), m_viewInternal, SLOT(slotDecFontSizes()));
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic