From 875b9b3c697182686d552cae85e136d17f36896a Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Mon, 28 Apr 2008 03:04:54 +0000 Subject: Yet more KDE4 port git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1609 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/links/linkswindow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/modules/links/linkswindow.cpp') diff --git a/src/modules/links/linkswindow.cpp b/src/modules/links/linkswindow.cpp index 54e571bc2..137f9be78 100644 --- a/src/modules/links/linkswindow.cpp +++ b/src/modules/links/linkswindow.cpp @@ -27,6 +27,7 @@ #include "kvi_out.h" #include "kvi_options.h" #include "kvi_locale.h" +#include "kvi_qstring.h" #include "kvi_out.h" #include "kvi_mirccntrl.h" #include "kvi_themedlabel.h" @@ -121,8 +122,9 @@ void KviLinksWindow::connectionStateChange() m_pRequestButton->setEnabled(st == KviIrcContext::Connected); if(st == KviIrcContext::Connected) { - KviStr tmp(KviStr::Format,__tr2qs("Connected to %s (%s)"),m_pConsole->connection()->currentServerName().toUtf8().data(),m_pConsole->currentNetworkName().toUtf8().data()); - m_pInfoLabel->setText(tmp.ptr()); + QString tmp; + KviQString::sprintf(tmp,__tr2qs("Connected to %s (%s)"),m_pConsole->connection()->currentServerName().toUtf8().data(),m_pConsole->currentNetworkName().toUtf8().data()); + m_pInfoLabel->setText(tmp); } else { m_pInfoLabel->setText(__tr2qs("Links cannot be requested: Not connected to a server")); } @@ -234,12 +236,13 @@ void KviLinksWindow::endOfLinks() output(KVI_OUT_SYSTEMERROR,__tr2qs("Broken link: Missing parent (%s) for %s (%d hops): %s (used /LINKS ?)"), l->parent.ptr(),l->host.ptr(),l->hops,l->description.ptr()); brokenLinks++; - KviStr tmp(KviStr::Format,__tr2qs("%s: Parent link %s"),l->description.ptr(),l->parent.ptr()); + QString tmp; + KviQString::sprintf(tmp,__tr2qs("%s: Parent link %s"),l->description.ptr(),l->parent.ptr()); KviStr tmp2(KviStr::Format,"%d",l->hops); - if(root)it = new KviTalListViewItem(m_pListView,root,QString(l->host.ptr()),QString(tmp2.ptr()),QString(tmp.ptr())); + if(root)it = new KviTalListViewItem(m_pListView,root,QString(l->host.ptr()),QString(tmp2.ptr()),tmp); else { outputNoFmt(KVI_OUT_SYSTEMERROR,__tr2qs("Warning: No root link was sent by the server, the stats may be invalid.")); - it = new KviTalListViewItem(m_pListView,QString(l->host.ptr()),QString(tmp2.ptr()),QString(tmp.ptr())); + it = new KviTalListViewItem(m_pListView,QString(l->host.ptr()),QString(tmp2.ptr()),tmp); } } else { it = it->parent(); -- cgit v1.3.1-10-gc9f91