aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/eventeditor/EventEditorWindow.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/eventeditor/EventEditorWindow.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/eventeditor/EventEditorWindow.cpp')
-rw-r--r--src/modules/eventeditor/EventEditorWindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/eventeditor/EventEditorWindow.cpp b/src/modules/eventeditor/EventEditorWindow.cpp
index a7354c7e4..46fbdb0ac 100644
--- a/src/modules/eventeditor/EventEditorWindow.cpp
+++ b/src/modules/eventeditor/EventEditorWindow.cpp
@@ -259,7 +259,7 @@ void EventEditor::getUniqueHandlerName(EventEditorEventTreeWidgetItem *it,QStrin
if(KviQString::equalCI(newName,((EventEditorHandlerTreeWidgetItem *)it->child(i))->m_szName))
{
bFound = true;
- KviQString::sprintf(newName,"%Q_%d",&buffer,idx);
+ newName = QString("%1_%2").arg(buffer).arg(idx);
idx++;
break;
}
@@ -342,7 +342,7 @@ void EventEditor::commit()
for(int j=0;j<ccount;j++)
{
QTreeWidgetItem * ch = it->child(j);
- KviQString::sprintf(szContext,"%Q::%Q",&(((EventEditorEventTreeWidgetItem *)it)->m_szName),&(((EventEditorHandlerTreeWidgetItem *)ch)->m_szName));
+ szContext = QString("%1::%2").arg(((EventEditorEventTreeWidgetItem *)it)->m_szName,((EventEditorHandlerTreeWidgetItem *)ch)->m_szName);
KviKvsScriptEventHandler * s = KviKvsScriptEventHandler::createInstance( // msvc workaround
((EventEditorHandlerTreeWidgetItem *)ch)->m_szName,
szContext,
@@ -409,10 +409,8 @@ void EventEditor::currentItemChanged(QTreeWidgetItem * it,QTreeWidgetItem *)
if(parms.isEmpty())parms = __tr2qs_ctx("none","editor");
KviCommandFormatter::indent(parms);
KviCommandFormatter::indent(parms);
- QString tmp;
- KviQString::sprintf(tmp,__tr2qs_ctx("\n\nEvent:\n%s\n\nParameters:\n%s","editor"),
- ((EventEditorEventTreeWidgetItem *)it)->m_szName.toUtf8().data(),parms.toUtf8().data());
- m_pEditor->setText(tmp);
+ QString szTmp = QString(__tr2qs_ctx("\n\nEvent:\n%1\n\nParameters:\n%2","editor")).arg(((EventEditorEventTreeWidgetItem *)it)->m_szName,parms);
+ m_pEditor->setText(szTmp);
}
}