diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-03 22:52:11 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:29:21 +0300 |
commit | 04bd479bd66a95883ac906b1f745d19bde567b8d (patch) | |
tree | 88818b31acd080219a52bad74f82bd136b7bf23f /qt/draw_widget.cpp | |
parent | 75b67819baa9c666ca0657c76a7cc1d35dad4d69 (diff) |
[core, android] button "go" and core support for it
Diffstat (limited to 'qt/draw_widget.cpp')
-rw-r--r-- | qt/draw_widget.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp index 5cdc3aaf08..9e82de20a8 100644 --- a/qt/draw_widget.cpp +++ b/qt/draw_widget.cpp @@ -394,9 +394,17 @@ namespace qt else if (e->modifiers() & Qt::ShiftModifier) { if (m_framework->IsRoutingActive()) - m_framework->CancelRoutingSession(); + { + static int counter = 0; + if (counter % 2 == 0) + m_framework->StartRoutingSession(); + else + m_framework->CancelRoutingSession(); + + counter++; + } else - m_framework->StartRoutingSession(m_framework->PtoG(pt)); + m_framework->BuildRoute(m_framework->PtoG(pt)); } if (e->modifiers() & Qt::AltModifier) { |