aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/RawEditorWindow.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2011-01-10 18:36:59 +0000
committerGravatar Elvio Basello2011-01-10 18:36:59 +0000
commit78735b180c2ba56fa1cf4fd578726d457626e80a (patch)
tree12b359e1e59b7585dc89878e2eeae54982baa4e1 /src/modules/raweditor/RawEditorWindow.cpp
parentupdated perlcore's xs include, hopefully fixing #1068 (diff)
downloadKVIrc-78735b180c2ba56fa1cf4fd578726d457626e80a.tar.gz
KVIrc-78735b180c2ba56fa1cf4fd578726d457626e80a.tar.bz2
KVIrc-78735b180c2ba56fa1cf4fd578726d457626e80a.zip
killed some QString helpers. Pay attention to the localizations: format strings have changed!;
updated translation files; git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5328 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/raweditor/RawEditorWindow.cpp')
-rw-r--r--src/modules/raweditor/RawEditorWindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/raweditor/RawEditorWindow.cpp b/src/modules/raweditor/RawEditorWindow.cpp
index 277c69715..21c3476ce 100644
--- a/src/modules/raweditor/RawEditorWindow.cpp
+++ b/src/modules/raweditor/RawEditorWindow.cpp
@@ -203,7 +203,7 @@ void RawEditorWidget::getUniqueHandlerName(RawTreeWidgetItem *it,QString &buffer
if(KviQString::equalCI(newName,ch->text(0)))
{
bFound = true;
- KviQString::sprintf(newName,"%Q_%d",&buffer,idx);
+ newName = QString("%1_%2").arg(buffer).arg(idx);
idx++;
break;
}
@@ -311,7 +311,7 @@ void RawEditorWidget::commit()
ch=(QTreeWidgetItem *)it->child(j);
qDebug("Commit handler %s",((RawHandlerTreeWidgetItem *)ch)->text(0).toUtf8().data());
//int a=(RawTreeWidgetItem *)it)->m_iIdx;
- KviQString::sprintf(szContext,"RawEvent%d::%s",&(((RawTreeWidgetItem *)it)->m_iIdx),(((RawHandlerTreeWidgetItem *)ch)->text(0)).toUtf8().data());
+ szContext = QString("RawEvent%1::%2").arg(((RawTreeWidgetItem *)it)->m_iIdx).arg(((RawHandlerTreeWidgetItem *)ch)->text(0));
KviKvsScriptEventHandler * s = new KviKvsScriptEventHandler(
((RawHandlerTreeWidgetItem *)ch)->text(0),
szContext,
@@ -363,10 +363,8 @@ void RawEditorWidget::currentItemChanged(QTreeWidgetItem * it,QTreeWidgetItem *)
m_pNameEditor->setEnabled(false);
m_pNameEditor->setText("");
m_pEditor->setEnabled(false);
- QString tmp;
- KviQString::sprintf(tmp,__tr2qs_ctx("\n\nRaw Event:\n%s","editor"),
- ((RawHandlerTreeWidgetItem *)it)->text(0).toUtf8().data());
- m_pEditor->setText(tmp);
+ QString szTmp = QString(__tr2qs_ctx("\n\nRaw Event:\n%1","editor")).arg(((RawHandlerTreeWidgetItem *)it)->text(0));
+ m_pEditor->setText(szTmp);
}
}