From e9bdaa29e39de374d65bfb6555f191050fb6463d Mon Sep 17 00:00:00 2001 From: Noldor Date: Wed, 12 Nov 2008 17:11:05 +0000 Subject: some fixes around. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2849 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/editor/scripteditor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/editor/scripteditor.cpp') diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index ad6b53b77..1b6ee2841 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -767,8 +767,7 @@ KviScriptEditorImplementation::KviScriptEditorImplementation(QWidget * par) connect(m_pFindLineEdit,SIGNAL(returnPressed()),m_pEditor,SLOT(slotFind())); connect(m_pFindLineEdit,SIGNAL(returnPressed()),this,SLOT(slotFind())); - connect(m_pEditor,SIGNAL(keyPressed()),this,SLOT(updateRowColLabel())); - connect(m_pEditor,SIGNAL(textChanged()),this,SLOT(updateRowColLabel())); + connect(m_pEditor,SIGNAL(cursorPositionChanged()),this,SLOT(updateRowColLabel())); connect(m_pEditor,SIGNAL(selectionChanged()),this,SLOT(updateRowColLabel())); m_lastCursorPos = 0; } @@ -927,7 +926,6 @@ void KviScriptEditorImplementation::updateRowColLabel() { if(m_lastCursorPos==m_pEditor->textCursor().position()) return; - int iRow = m_pEditor->textCursor().blockNumber(); int iCol = m_pEditor->textCursor().columnNumber(); QString szTmp; -- cgit v1.3.1-10-gc9f91