12#include <QApplication>
21#include <klocalizedstring.h>
54 mouseArea.setTopLeft(mouseArea.center());
60 QMouseEvent event(QEvent::MouseMove, originalWidgetPoint, Qt::LeftButton, Qt::LeftButton, QFlags<Qt::KeyboardModifier>());
72 if (event.
buttons() != Qt::LeftButton)
return;
187 switch (event->type()) {
188 case QEvent::TabletPress:
191 case QEvent::TabletRelease:
196 case QEvent::TabletMove:
374 Q_FOREACH(QAction *action, collection->
actions()) {
376 const QVariant prop = action->property(
"tool_action");
378 if (prop.isValid()) {
383 std::copy(shortcuts.begin(), shortcuts.end(),
403 switch (event->touchPointStates())
405 case Qt::TouchPointPressed:
408 case Qt::TouchPointMoved:
411 case Qt::TouchPointReleased:
455 bool success =
false;
466 bool success =
false;
507 if(e->type()==QEvent::ShortcutOverride
510 && (
static_cast<QKeyEvent*
>(e)->modifiers()==Qt::NoModifier ||
511 static_cast<QKeyEvent*
>(e)->modifiers()==Qt::ShiftModifier
514 || (
static_cast<QKeyEvent*
>(e)->modifiers()==(Qt::AltModifier | Qt::ControlModifier) &&
515 static_cast<QKeyEvent*
>(e)->key() < Qt::Key_Escape)
556#include "moc_KoToolProxy.cpp"
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
A container for a set of QAction objects.
QList< QAction * > actions() const
virtual KoShapeManager * shapeManager() const =0
virtual void ensureVisibleDoc(const QRectF &docRect, bool smooth)=0
Scrolls the content of the canvas so that the given rect is visible.
KisKActionCollection * actionCollection
virtual KoCanvasBase * canvas() const
QPoint globalPos() const
Return the position screen coordinates.
Qt::MouseButtons buttons() const
return buttons pressed (see QMouseEvent::buttons());
bool isAccepted() const
return if the event has been accepted.
KoPointerEventWrapper deepCopyEvent() const
QPoint pos() const
return the position in widget coordinates
KoShapeLayer * activeLayer() const
virtual bool isShapeEditable(bool recursive=true) const
checks recursively if the shape or one of its parents is not visible or locked
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)