[Kde-bindings] playground/bindings/kimono

Arno Rehn kde at arnorehn.de
Tue Mar 6 20:44:34 UTC 2007


SVN commit 640096 by arnorehn:

* In the simpletreemodel example the entries of default.txt are now being read correctly

CCMAIL: kde-bindings at kde.org



 M  +1 -0      ChangeLog  
 M  +2 -1      examples/itemviews/simpletreemodel/treemodel.cs  


--- trunk/playground/bindings/kimono/ChangeLog #640095:640096
@@ -17,6 +17,7 @@
 	  QAbstractItemModel.CreateIndex() looks up a GCHandle in the Dictionary
 	  and if it exists it is passed to the C++ function. Child items of a tree model
 	  can now be selected.
+	* In the simpletreemodel example the entries of default.txt are now being read correctly
 
 2007-03-05  Richard Dale  <rdale at foton.es>
 
--- trunk/playground/bindings/kimono/examples/itemviews/simpletreemodel/treemodel.cs #640095:640096
@@ -150,7 +150,8 @@
 		
 			if (lineData != "") {
 				// Read the column data from the rest of the line.
-				List<string> columnStrings = new List<string>(lineData.Split("\t".ToCharArray()));
+				List<string> columnStrings = new List<string>(lineData.Split(new char[] { '\t' },
+										 StringSplitOptions.RemoveEmptyEntries));
 				List<QVariant> columnData = new List<QVariant>();
 				
 				for (int column = 0; column < columnStrings.Count; ++column)



More information about the Kde-bindings mailing list