Author: mir3x
Date: Wed Oct 28 10:15:26 2015
New Revision: 30257

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

See patch #6446


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

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