[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeprint/management
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-09-20 15:37:25
Message-ID: 1158766645.286108.4923.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 586780 by mueller:

use prettyUrl() to hide password


 M  +1 -1      kminfopage.cpp  
 M  +1 -1      kmpropbackend.cpp  
 M  +1 -1      kmwend.cpp  


--- trunk/KDE/kdelibs/kdeprint/management/kminfopage.cpp #586779:586780
@@ -130,7 +130,7 @@
 		{
 			QString	s;
 			for (QStringList::ConstIterator it=p->members().begin(); it!=p->members().end(); ++it)
-				s.append((*it) + ", ");
+				s.append(KUrl(*it).prettyUrl() + ", ");
 			s.truncate(s.length()-2);
 			m_device->setText(s);
 		}
--- trunk/KDE/kdelibs/kdeprint/management/kmpropbackend.cpp #586779:586780
@@ -59,7 +59,7 @@
 {
 	if (p && p->isPrinter())
 	{
-		m_uri->setText(p->device());
+		m_uri->setText(KUrl(p->device()).prettyUrl());
 		QString	prot = p->deviceProtocol();
 		if (prot == "ipp" || prot == "http") m_type->setText(i18n("IPP Printer"));
 		else if (prot == "usb") m_type->setText(i18n("Local USB Printer"));
--- trunk/KDE/kdelibs/kdeprint/management/kmwend.cpp #586779:586780
@@ -96,7 +96,7 @@
 			default:
 				// double decoding in case the printer name contains chars like '#' that are
 				// not decoded by "prettyUrl".
-				txt.append(s.arg(i18n("URI")).arg(shadowPassword( p->device() )));
+				txt.append(s.arg(i18n("URI")).arg(KUrl( p->device() ).prettyUrl()));
 				break;
 		}
 		txt.append("</ul><br>");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic