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

List:       kde-commits
Subject:    extragear/network/kmldonkey/kmldonkey
From:       Nicolas Lécureuil <neoclust () mandriva ! org>
Date:       2009-06-11 21:17:32
Message-ID: 1244755052.739566.1184.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 980497 by nlecureuil:

Remove QString deprecated functions

 M  +1 -1      kmldonkey.cpp  
 M  +1 -1      shareddirs.cpp  
 M  +4 -4      statspageclients.cpp  
 M  +1 -1      statspageovernet.cpp  


--- trunk/extragear/network/kmldonkey/kmldonkey/kmldonkey.cpp #980496:980497
@@ -785,7 +785,7 @@
 
     const QString encoding = "( " + coreCharset.toLower() + " )";
     for (int i = 0; i < prefs->generalPage->encodingSelector->count(); i++) {
-        if (prefs->generalPage->encodingSelector->text(i).toLower().find(encoding) != -1) {
+        if (prefs->generalPage->encodingSelector->text(i).toLower().contains(encoding) ) {
             prefs->generalPage->encodingSelector->setCurrentIndex(i);
             break;
         }
--- trunk/extragear/network/kmldonkey/kmldonkey/shareddirs.cpp #980496:980497
@@ -61,7 +61,7 @@
     QStringList list = res.split("\n");
     for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
         QString s = (*it).trimmed();
-        int pos = s.find(" ");
+        int pos = s.indexOf(" ");
         if (pos < 0) continue;
 
         bool ok;
--- trunk/extragear/network/kmldonkey/kmldonkey/statspageclients.cpp #980496:980497
@@ -136,7 +136,7 @@
         count = 0;
 
         for (QStringList::Iterator listit = list.begin(); listit != list.end(); ++listit) {
-            pos = (*listit).find(":");
+            pos = (*listit).indexOf(":");
             if (pos > 0) {
                 label = (*listit).left(pos + 1).trimmed();
                 value = (*listit).right((*listit).length() - pos - 1).trimmed();
@@ -147,9 +147,9 @@
                     grpBox->setTitle( label.left(label.length() - 1).trimmed() );
                 }
                 else {
-                    int p1 = value.find("(");
-                    int p2 = value.find("%", p1);
-                    int p3 = value.find(")", p2);
+                    int p1 = value.indexOf("(");
+                    int p2 = value.indexOf("%", p1);
+                    int p3 = value.indexOf(")", p2);
                     if (p3 > p2 && p2 > p1 && p1 > 0) {
                         bool ok;
                         double pv = value.mid(p1 + 1, p2 - p1 -1).trimmed().toDouble(&ok);
--- trunk/extragear/network/kmldonkey/kmldonkey/statspageovernet.cpp #980496:980497
@@ -109,7 +109,7 @@
             for (QStringList::Iterator it = values.begin(); it != values.end(); ++it) {
                 s = (*it).trimmed();
                 t = QString("");
-                pos = s.find(" ");
+                pos = s.indexOf(" ");
                 if (pos > 0) {
                     t = s.mid(pos + 1, s.length() - pos - 1).replace("_", " ").trimmed();
                     s = s.remove(pos, s.length() - pos).trimmed();
[prev in list] [next in list] [prev in thread] [next in thread] 

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