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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/libkopete
From:       Pali Rohár <pali.rohar () gmail ! com>
Date:       2013-05-22 0:49:13
Message-ID: 20130522004913.1E854AC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1355998 by pali:

Truncate GUI contact tooltip lines those are too long (more then 1000 chars)


 M  +5 -0      kopetecontact.cpp  


--- trunk/KDE/kdenetwork/kopete/libkopete/kopetecontact.cpp #1355997:1355998
@@ -697,6 +697,11 @@
 						}
 				}
 
+				if (valueText.size() > 1000) {
+					valueText.truncate(997);
+					valueText += "...";
+				}
+
 				tip += i18nc("@label:textbox property label %2 is name, %1 is value",
 					"<br /><nobr><b>%2:</b></nobr>&nbsp;%1",
 						valueText, Qt::escape(p.tmpl().label()) );
[prev in list] [next in list] [prev in thread] [next in thread] 

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