Bug 277186

Summary: The layer box Add New Layer button works chaotically with the stylus
Product: [Applications] krita Reporter: pentalis
Component: DockersAssignee: pentalis
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description pentalis 2011-07-06 10:40:36 UTC
Description:
With the mouse, the Add New Layer button accepts a click event on its arrow, and lets the user pick the kind of layer to add.
With the stylus, "clicking" on the button does not work, it will immediately select a menu item. The only form for it to work correctly is to press the stylus button, move to the correct menu entry, and then release the stylus.

Desired outcome:
Have the stylus work like the mouse when interacting with the button, or find a widget replacement that gives the same functionality as this button.
Comment 1 pentalis 2011-07-08 15:11:47 UTC
Git commit e1dc37edd7d6fe138e1e4546cb629f3bd52935b2 by José Luis Vergara.
Committed on 08/07/2011 at 17:08.
Pushed by jlvergara into branch 'master'.

Create KisToolButton, a sublass of QToolButton to bypass a bug in tablet support

o Add the class to CMakeLists.txt
o Document it
o Promote bnAdd in WdgLayerBox from QToolButton to KisToolButton

BUG:277186

M  +7    -2    krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui     
M  +1    -0    krita/ui/CMakeLists.txt     
A  +51   -0    krita/ui/widgets/kis_tool_button.cpp         [License: GPL (v2+)]
A  +47   -0    krita/ui/widgets/kis_tool_button.h         [License: GPL (v2+)]

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