Bug 277186 - The layer box Add New Layer button works chaotically with the stylus
Summary: The layer box Add New Layer button works chaotically with the stylus
Alias: None
Product: krita
Classification: Applications
Component: Dockers (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: pentalis
Depends on:
Reported: 2011-07-06 10:40 UTC by pentalis
Modified: 2011-07-08 15:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description pentalis 2011-07-06 10:40:36 UTC
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


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+)]