From a1a2f81e9e131adc82330d0e20f02e00e3e12a25 Mon Sep 17 00:00:00 2001 From: Noldor Date: Sun, 13 Apr 2008 17:47:27 +0000 Subject: removed QT3 QString stuff (wip). Need test. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1476 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/editor/scripteditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/editor/scripteditor.cpp') diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 44703c79b..b431b731f 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -452,7 +452,7 @@ bool KviScriptEditorWidget::contextSensitiveHelp() const void KviScriptEditorWidget::getWordOnCursor(QString &buffer,int index) const { QRegExp re("[ \t=,\\(\\)\"}{\\[\\]\r\n+-*><;@!]"); - //debug("BUFFER IS %s",buffer.utf8().data()); + //debug("BUFFER IS %s",buffer.toUtf8().data()); int start = buffer.findRev(re,index); int end = buffer.find(re,index); @@ -465,7 +465,7 @@ void KviScriptEditorWidget::getWordOnCursor(QString &buffer,int index) const tmp = buffer.mid(start,end-start); } buffer = tmp; - //debug("BUFFER NOW IS %s",buffer.utf8().data()); + //debug("BUFFER NOW IS %s",buffer.toUtf8().data()); } void KviScriptEditorWidget::completition(bool bCanComplete) @@ -953,7 +953,7 @@ void KviScriptEditorImplementation::saveToFile() QString buffer = m_pEditor->text(); //if(tmp.isEmpty())tmp = ""; - //KviStr buffer = tmp.utf8().data(); + //KviStr buffer = tmp.toUtf8().data(); if(!KviFileUtils::writeFile(fName,buffer)) { QString tmp; -- cgit v1.3.1-10-gc9f91