[calligra/calligra/2.9] krita: FEATURE Add two new shortcuts

Boudewijn Rempt boud at valdyas.org
Fri Jun 26 11:17:16 UTC 2015


Git commit b721dfa265ab91cc590d23c4a48bce1989164027 by Boudewijn Rempt.
Committed on 26/06/2015 at 11:16.
Pushed by rempt into branch 'calligra/2.9'.

FEATURE Add two new shortcuts

F5 opens the brush editor
F7 opens the brush preset selector

CCMAIL:kimageshop at kde.org

M  +2    -0    krita/krita.action
M  +10   -0    krita/ui/kis_paintop_box.cc

http://commits.kde.org/calligra/b721dfa265ab91cc590d23c4a48bce1989164027

diff --git a/krita/krita.action b/krita/krita.action
index 69d6c11..1111207 100644
--- a/krita/krita.action
+++ b/krita/krita.action
@@ -334,4 +334,6 @@
     <Action name="toggle_assistant" icon="" text="Toggle Assistant" whatsThis="" toolTip="Toggle Assistant" iconText="ToggleAssistant" shortcut="Ctrl+Shift+L" defaultShortcut="Ctrl+Shift+L" isCheckable="true" statusTip=""/>
     <Action name="undo_polygon_selection" icon="" text="Undo Polygon Selection Points" whatsThis="" toolTip="Undo Polygon Selection Points" iconText="Undo Polygon Selection Points" shortcut="Shift+Z" defaultShortcut="Shift+Z" isCheckable="false" statusTip=""/>
     <Action name="" icon="show_tool_options" text="Show Tool Options" whatsThis="" toolTip="Show Tool Options" iconText="Show Tool Options" shortcut="" defaultShortcut="" isCheckable="false" statusTip=""/>
+    <Action name="" icon="show_tool_options" text="Show Brush Editor" whatsThis="" toolTip="Show Brush Editor" iconText="Show Brush Editor" shortcut="i" defaultShortcut="" isCheckable="false" statusTip=""/>
+    <Action name="" icon="show_tool_options" text="Show Brush Presets" whatsThis="" toolTip="Show Brush Presets" iconText="Show Brush Presets" shortcut="" defaultShortcut="" isCheckable="false" statusTip=""/>
 </Actions>
diff --git a/krita/ui/kis_paintop_box.cc b/krita/ui/kis_paintop_box.cc
index 231a151..e980ed6 100644
--- a/krita/ui/kis_paintop_box.cc
+++ b/krita/ui/kis_paintop_box.cc
@@ -321,6 +321,16 @@ KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *
         connect(action, SIGNAL(triggered()), m_toolOptionsPopupButton, SLOT(showPopupWidget()));
     }
 
+    action = new KAction(i18n("Show Brush Editor"), this);
+    view->actionCollection()->addAction("show_brush_editor", action);
+    action->setShortcut(Qt::Key_F5);
+    connect(action, SIGNAL(triggered()), m_brushEditorPopupButton, SLOT(showPopupWidget()));
+
+    action = new KAction(i18n("Show Brush Presets"), this);
+    view->actionCollection()->addAction("show_brush_presets", action);
+    action->setShortcut(Qt::Key_F7);
+    connect(action, SIGNAL(triggered()), m_presetSelectorPopupButton, SLOT(showPopupWidget()));
+
     QWidget* mirrorActions = new QWidget(this);
     QHBoxLayout* mirrorLayout = new QHBoxLayout(mirrorActions);
     mirrorLayout->addWidget(m_hMirrorButton);


More information about the kimageshop mailing list