diff options
| author | 2009-03-13 18:05:15 +0000 | |
|---|---|---|
| committer | 2009-03-13 18:05:15 +0000 | |
| commit | 565342941477679275ffca189d42118e6315e32f (patch) | |
| tree | 6d8dadf70cf5f793891bea3de851375d57f8730e /src/modules | |
| parent | some alignment fixes in topicwidget (diff) | |
| download | KVIrc-565342941477679275ffca189d42118e6315e32f.tar.gz KVIrc-565342941477679275ffca189d42118e6315e32f.tar.bz2 KVIrc-565342941477679275ffca189d42118e6315e32f.zip | |
Fixed text formatting
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3131 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/editor/libkvieditor.cpp | 2 | ||||
| -rw-r--r-- | src/modules/editor/scripteditor.cpp | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/editor/libkvieditor.cpp b/src/modules/editor/libkvieditor.cpp index a1c83d94e..91556e75f 100644 --- a/src/modules/editor/libkvieditor.cpp +++ b/src/modules/editor/libkvieditor.cpp @@ -60,7 +60,7 @@ static bool editor_module_cleanup(KviModule *) if(w->inherits("KviWindow")) { // debug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); - ((KviWindow *)w)->close(); + //((KviWindow *)w)->close(); // debug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); break; } diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 1b965917f..2e46c648b 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -238,7 +238,6 @@ void KviScriptEditorWidget::insertCompletion(const QString & szCompletion) tc.movePosition(QTextCursor::EndOfWord); QString szTmp = szCompletion.right(iExtra); - debug ("append %s to %s",szTmp.toUtf8().data(),m_pCompleter->completionPrefix().toUtf8().data()); if(szCompletion.left(1)=="$") szTmp.append("("); else @@ -884,7 +883,7 @@ void KviScriptEditorImplementation::setText(const char * txt) void KviScriptEditorImplementation::setText(const KviQCString & szText) { - m_pEditor->setText(szText.data()); + m_pEditor->setPlainText(szText.data()); m_pEditor->document()->setModified(false); updateRowColLabel(); } @@ -896,7 +895,7 @@ void KviScriptEditorImplementation::getText(KviQCString & szText) void KviScriptEditorImplementation::setText(const QString & szText) { - m_pEditor->setText(szText); + m_pEditor->setPlainText(szText); QTextCursor cur=m_pEditor->textCursor(); cur.movePosition(QTextCursor::End); m_pEditor->setTextCursor(cur); @@ -945,7 +944,7 @@ void KviScriptEditorImplementation::loadFromFile() QString szBuffer; if(KviFileUtils::loadFile(szFileName,szBuffer)) { - m_pEditor->setText(szBuffer); + m_pEditor->setPlainText(szBuffer); setCursorPosition(0); //m_pEditor->moveCursor(KviTalTextEdit::MoveEnd,false); //updateRowColLabel(); |
