diff options
| author | 2011-01-10 18:36:59 +0000 | |
|---|---|---|
| committer | 2011-01-10 18:36:59 +0000 | |
| commit | 78735b180c2ba56fa1cf4fd578726d457626e80a (patch) | |
| tree | 12b359e1e59b7585dc89878e2eeae54982baa4e1 /src/modules/classeditor/ClassEditorWindow.cpp | |
| parent | updated perlcore's xs include, hopefully fixing #1068 (diff) | |
| download | KVIrc-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/classeditor/ClassEditorWindow.cpp')
| -rw-r--r-- | src/modules/classeditor/ClassEditorWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/classeditor/ClassEditorWindow.cpp b/src/modules/classeditor/ClassEditorWindow.cpp index a3f6ee7cc..64c4255c3 100644 --- a/src/modules/classeditor/ClassEditorWindow.cpp +++ b/src/modules/classeditor/ClassEditorWindow.cpp @@ -1334,15 +1334,15 @@ bool ClassEditorWidget::removeItem(ClassEditorTreeWidgetItem * pItem, KviPointer saveLastEditedItem(); if(pItem->isClass()) { - KviQString::sprintf(szMsg,__tr2qs_ctx("Do you really want to remove the class \"%Q\" ?","editor"),&szName); + szMsg = QString(__tr2qs_ctx("Do you really want to remove the class \"%1\"?","editor")).arg(szName); } else if(pItem->isNamespace()) { - KviQString::sprintf(szMsg,__tr2qs_ctx("Do you really want to remove the namespace \"%Q\" ?","editor"),&szName); + szMsg = QString(__tr2qs_ctx("Do you really want to remove the namespace \"%1\"?","editor")).arg(szName); szMsg += "<br>"; szMsg += __tr2qs_ctx("Please note that all the children classes/functions will be deleted too.","editor"); } else if(pItem->isMethod()) { - KviQString::sprintf(szMsg,__tr2qs_ctx("Do you really want to remove the function \"%Q\" ?","editor"),&szName); + szMsg = QString(__tr2qs_ctx("Do you really want to remove the function \"%1\"?","editor")).arg(szName); } g_pClassEditorModule->lock(); @@ -1372,7 +1372,7 @@ bool ClassEditorWidget::removeItem(ClassEditorTreeWidgetItem * pItem, KviPointer { m_pClasses->removeRef(pItem); KviKvsObjectClass * pClass = KviKvsKernel::instance()->objectController()->lookupClass(buildFullClassName(pItem)); - qDebug("rimuovo class %s %p",buildFullClassName(pItem).toUtf8().data(), pClass); + qDebug("removing class %s %p",buildFullClassName(pItem).toUtf8().data(), pClass); if(pClass) KviKvsKernel::instance()->objectController()->deleteClass(pClass); else |
