[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: [calligra/calligra/2.9] krita: FEATURE Add two new shortcuts
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2015-06-26 11:17:16
Message-ID: E1Z8RdE-0005cV-9c () scm ! kde ! org
[Download RAW message or body]
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@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);
_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic