Jürgen Spitzmüller wrote:
http://bugzilla.lyx.org/show_bug.cgi?id=3201

This turned to be out more complicated than I thought, because both the cursor and the scrollbar position have to be saved for each buffer separately.

Attached is what I came up with.

Opinions?

One general comment: I know that the qt4 frontend is not as clean as it should be but we should try to not add additional dependency to the core (src/*.h). So, please move the map to ControlDocument instead and fill-in the cursor position with a helper function.

Also I am puzzled that we need to memorize the scrollbar position. If we move the internal cursor, won't the scrollbar automatically follow?

I see that QTextEdit::moveCursor() is introduced only in 4.2 but that seem exactly what we need.

Abdel.

Reply via email to