Skip to content

Commit

Permalink
Added mouse event handling to ReactItem (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkjr authored Oct 19, 2018
1 parent 74fb94b commit 24a17d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReactQt/runtime/src/reactitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ void ReactItem::setTransform(QVector<float>& transform) {
r.append(new utilities::MatrixTransform(transform, this));
}

ReactItem::ReactItem(QQuickItem* parent) : QQuickPaintedItem(parent), d_ptr(new ReactItemPrivate(this)) {}
ReactItem::ReactItem(QQuickItem* parent) : QQuickPaintedItem(parent), d_ptr(new ReactItemPrivate(this)) {
setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton);
}

ReactItem::~ReactItem() {}

Expand Down

0 comments on commit 24a17d9

Please sign in to comment.