]> git.lyx.org Git - features.git/commit
Rename Cursor::setSelection(bool) to selection(bool)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 28 Feb 2016 16:36:29 +0000 (17:36 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:46 +0000 (17:55 -0400)
commit83d8e12cc1467931c566bca988a070ce992089fc
tree426f0c392f7300caa92785470323c82e654ed0bf
parent9fbee19a7ff7a6f2a015cf922dbbcb1dcaf84294
Rename Cursor::setSelection(bool) to selection(bool)

The old name would be confusing wrt setSelection(), which does additional checks.
This one is a pure acessor, and the more complete methods are
* setSelection(), which avoids empty selections
* clearSelection(), which resets anchor, and sets word selection and mark more to false.

Most of the code should use these two instead of selection(bool), but this is for later.
src/BufferView.cpp
src/Cursor.cpp
src/Cursor.h
src/CutAndPaste.cpp
src/Text.cpp
src/Text3.cpp
src/TextMetrics.cpp
src/frontends/qt4/GuiSpellchecker.cpp
src/insets/InsetTabular.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathNest.cpp