Mercurial > hg > forks > UniversalIndentGUI
changeset 156:7e6d43bb7043
There is still a bug with positioning the cursor correctly after inserting or deleting a new line.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@359 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Fri, 01 Jun 2007 10:12:09 +0000 |
parents | fbe5b5416862 |
children | 8d850bcdf368 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Fri Jun 01 10:10:11 2007 +0000 +++ b/src/mainwindow.cpp Fri Jun 01 10:12:09 2007 +0000 @@ -605,6 +605,9 @@ } +/*! + Added this slot to avoid multiple calls because of changed text. + */ void MainWindow::sourceCodeChangedHelperSlot() { QTimer::singleShot(0, this, SLOT(sourceCodeChangedSlot())); } @@ -718,6 +721,10 @@ txtedSourceCode->setModified( true ); setWindowModified( txtedSourceCode->isModified() ); } + + // Could set cursor this way and use normal linear search in text instead of columns and rows. + //txtedSourceCode->SendScintilla(QsciScintillaBase::SCI_SETCURRENTPOS, 50); + //txtedSourceCode->SendScintilla(QsciScintillaBase::SCI_SETANCHOR, 50); }