Author: mir3x
Date: Wed Oct 28 10:15:45 2015
New Revision: 30259

URL: http://svn.gna.org/viewcvs/freeciv?rev=30259&view=rev
Log:
Added keyboardless goto for qt-client

See patch #6446


Modified:
    branches/S2_6/client/gui-qt/mapctrl.cpp

Modified: branches/S2_6/client/gui-qt/mapctrl.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/mapctrl.cpp?rev=30259&r1=30258&r2=30259&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/mapctrl.cpp     (original)
+++ branches/S2_6/client/gui-qt/mapctrl.cpp     Wed Oct 28 10:15:45 2015
@@ -225,6 +225,9 @@
 void map_view::mouseMoveEvent(QMouseEvent *event)
 {
   update_line(event->pos().x(), event->pos().y());
+  if (keyboardless_goto_button_down && hover_state == HOVER_NONE) {
+    maybe_activate_keyboardless_goto(event->pos().x(), event->pos().y());
+  }
   control_mouse_cursor(canvas_pos_to_tile(event->pos().x(),
                                           event->pos().y()));
 }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to