Bo Peng wrote:

>> > qt422, I am trying 4.1.
>>
>> qt-4.2.3 here.
> 
> Qt 4.1 does not work here. Please try 4.1 (the version lyx uses) if
> possible.

Assuming the problem is the qt version, for me installing qt 4.1 is a real
PITA, and I would like to avoid it if possible.

So if someone with qt4.1 and good will could look at lines 69-73 of
src/frontends/qt4/QViewSource.cpp and make them behave (that is, make them
select rows beg..end in the source view panel) I would be very grateful.

        QTextCursor c = QTextCursor(viewSourceTV->document());
        c.movePosition(QTextCursor::NextBlock, QTextCursor::MoveAnchor,
beg);
        c.select(QTextCursor::BlockUnderCursor);
        c.movePosition(QTextCursor::NextBlock, QTextCursor::KeepAnchor,
end - beg + 1);
        viewSourceTV->setTextCursor(c);

Thanks in advance,

Alfredo


Reply via email to