Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_shortcut_matcher.cpp File Reference
#include "kis_shortcut_matcher.h"
#include <QEvent>
#include <QMouseEvent>
#include <QTabletEvent>
#include "kis_assert.h"
#include "kis_abstract_input_action.h"
#include "kis_stroke_shortcut.h"
#include "kis_touch_shortcut.h"
#include "kis_native_gesture_shortcut.h"
#include "kis_config.h"
#include "kis_extended_modifiers_mapper.h"
#include <KoPointerEvent.h>

Go to the source code of this file.

Classes

class  KisShortcutMatcher
 
struct  KisShortcutMatcher::RecursionGuard
 
struct  KisShortcutMatcher::RecursionNotifier
 

Macros

#define DEBUG_ACTION(text)
 
#define DEBUG_BUTTON_ACTION(text, button)
 
#define DEBUG_EVENT_ACTION(text, event)
 
#define DEBUG_KEY(text)
 
#define DEBUG_SHORTCUT(text, shortcut)
 
#define DEBUG_TOUCH_ACTION(text, event)
 

Functions

Qt::MouseButtons listToFlags (const QList< Qt::MouseButton > &list)
 

Macro Definition Documentation

◆ DEBUG_ACTION

#define DEBUG_ACTION ( text)

Definition at line 37 of file kis_shortcut_matcher.cpp.

◆ DEBUG_BUTTON_ACTION

#define DEBUG_BUTTON_ACTION ( text,
button )

Definition at line 40 of file kis_shortcut_matcher.cpp.

◆ DEBUG_EVENT_ACTION

#define DEBUG_EVENT_ACTION ( text,
event )

Definition at line 41 of file kis_shortcut_matcher.cpp.

◆ DEBUG_KEY

#define DEBUG_KEY ( text)

Definition at line 38 of file kis_shortcut_matcher.cpp.

◆ DEBUG_SHORTCUT

#define DEBUG_SHORTCUT ( text,
shortcut )

Definition at line 39 of file kis_shortcut_matcher.cpp.

◆ DEBUG_TOUCH_ACTION

#define DEBUG_TOUCH_ACTION ( text,
event )

Definition at line 42 of file kis_shortcut_matcher.cpp.

Function Documentation

◆ listToFlags()

Qt::MouseButtons listToFlags ( const QList< Qt::MouseButton > & list)

Definition at line 582 of file kis_shortcut_matcher.cpp.

582 {
583 Qt::MouseButtons flags;
584 Q_FOREACH (Qt::MouseButton b, list) {
585 flags |= b;
586 }
587 return flags;
588}