OSDN Git Service

Make accidentally activating the link navigation more difficult
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Tue, 3 Nov 2009 13:29:49 +0000 (14:29 +0100)
committercon <qtc-committer@nokia.com>
Tue, 3 Nov 2009 17:26:40 +0000 (18:26 +0100)
commit106e3bb09b4fde258fd8606ec5ef8e92aca01e2d
treea8a1ad7161386c1acb0a737c327cdcd593e87f15
parent583b911b721d84cc73f5aca7cf5a634202cacc81
Make accidentally activating the link navigation more difficult

Only checking Ctrl and link availability on mouse release was triggering
the navigation too easily.

Now you have to press and release the mouse on the same link, having
Ctrl pressed all the time. In addition, when changing the text selection
the link is also cleared.

Task-number: QTCREATORBUG-134
Reviewed-by: con
(cherry picked from commit 2c115e934fb5700e42f64491af92b3facfb2cbf0)
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.h
src/plugins/texteditor/basetexteditor_p.h