|
Krita Source Code Documentation
|
#include <kis_tool_button.h>
Inheritance diagram for KisToolButton:Public Member Functions | |
| KisToolButton (QWidget *parent=0) | |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *e) override |
| void | mouseReleaseEvent (QMouseEvent *e) override |
Private Attributes | |
| bool | m_tabletContact |
This class exists to work around a bug in QToolButton when in MenuPopupButton mode. The correct (mouse) behavior is to display the menu with the first click, and let the user choose an item with the next click. The buggy behavior presented by the tablet is to present the menu and immediately select an item when the user performs a stylus tip click. This workaround solves this.
Definition at line 21 of file kis_tool_button.h.
|
explicit |
Definition at line 12 of file kis_tool_button.cpp.
References m_tabletContact.
|
overrideprotected |
Definition at line 18 of file kis_tool_button.cpp.
References m_tabletContact.
|
overrideprotected |
Definition at line 31 of file kis_tool_button.cpp.
References m_tabletContact.
|
private |
Definition at line 32 of file kis_tool_button.h.