Author: mir3x
Date: Wed Oct 28 10:15:38 2015
New Revision: 30258

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

See patch #6446


Modified:
    trunk/client/gui-qt/mapctrl.cpp

Modified: trunk/client/gui-qt/mapctrl.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapctrl.cpp?rev=30258&r1=30257&r2=30258&view=diff
==============================================================================
--- trunk/client/gui-qt/mapctrl.cpp     (original)
+++ trunk/client/gui-qt/mapctrl.cpp     Wed Oct 28 10:15:38 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