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

List:       kde-commits
Subject:    extragear/network/kmldonkey/kmldonkey
From:       Aleksey Markelov <markelovai () gmail ! com>
Date:       2009-07-23 13:49:12
Message-ID: 1248356952.843863.24324.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1001508 by amarkelov:

fixed initial encoding selection in configuration dialog; QObject::connect warning

 M  +5 -4      kmldonkey.cpp  
 M  +0 -18     prefs/generalpage.ui  


--- trunk/extragear/network/kmldonkey/kmldonkey/kmldonkey.cpp #1001507:1001508
@@ -788,10 +788,11 @@
     prefs->generalPage->persistentReconnectCheckbox->setChecked( persistentReconnect );
     prefs->generalPage->advancedConfigCheckbox->setChecked( advancedConfig );
 
-    const QString encoding = "( " + coreCharset.toLower() + " )";
-    for (int i = 0; i < prefs->generalPage->encodingSelector->count(); i++) {
-        if (prefs->generalPage->encodingSelector->text(i).toLower().contains(encoding) ) {
-            prefs->generalPage->encodingSelector->setCurrentIndex(i);
+    const QString encoding = '(' + coreCharset + ')';
+    QComboBox *selector = prefs->generalPage->encodingSelector;
+    for (int i = 0; i < selector->count(); i++) {
+        if (selector->itemText(i).contains(encoding, Qt::CaseInsensitive) ) {
+            selector->setCurrentIndex(i);
             break;
         }
     }
--- trunk/extragear/network/kmldonkey/kmldonkey/prefs/generalpage.ui #1001507:1001508
@@ -239,22 +239,4 @@
   <include location="local" >kcombobox.h</include>
  </includes>
  <resources/>
- <connections>
-  <connection>
-   <sender>encodingSelector</sender>
-   <signal>activated(int)</signal>
-   <receiver>KMLDonkeyPrefGeneralPage</receiver>
-   <slot>encodingSelectionChanged(int)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>20</x>
-     <y>20</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>20</x>
-     <y>20</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
 </ui>
[prev in list] [next in list] [prev in thread] [next in thread] 

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