Commit d88dc0e5 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: fixed right click in xnav.

parent ed7e5c16
This diff is collapsed.
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
int init_nav(QWidget* nav_widget, void* flow_ctx); int init_nav(QWidget* nav_widget, void* flow_ctx);
int event_handler(QEvent* event, QWidget *target); int event_handler(FlowCtx* ctx, QEvent* event, QWidget *target);
void enable_event(FlowCtx* ctx, flow_eEvent event, flow_eEventType event_type, void enable_event(FlowCtx* ctx, flow_eEvent event, flow_eEventType event_type,
int (*event_cb)(FlowCtx* ctx, flow_tEvent event)); int (*event_cb)(FlowCtx* ctx, flow_tEvent event));
...@@ -252,7 +252,7 @@ private: ...@@ -252,7 +252,7 @@ private:
int x, int y, char* text, int len); int x, int y, char* text, int len);
void cursor_helper(FlowCtx* ctx, draw_eCursor cursor, bool nav = false); void cursor_helper(FlowCtx* ctx, draw_eCursor cursor, bool nav = false);
void event_timer(QMouseEvent *event, QWidget *target); void event_timer(FlowCtx* ctx, QMouseEvent *event, QWidget *target);
void cancel_event_timer(); void cancel_event_timer();
flow_draw_sTimerCb* timer_cb; flow_draw_sTimerCb* timer_cb;
......
...@@ -251,7 +251,7 @@ void QtScrollWidgetFlow::handleEvent(QEvent* event) ...@@ -251,7 +251,7 @@ void QtScrollWidgetFlow::handleEvent(QEvent* event)
if (event->type() == QEvent::MouseMove) { if (event->type() == QEvent::MouseMove) {
drawer->window->update(); drawer->window->update();
} }
drawer->event_handler(event, this); drawer->event_handler((FlowCtx*)parent_ctx, event, this);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment