Bug#1706: Another problem in kdevelop->kdlgedit

Juergen Vigna jug at sad.it
Tue Aug 10 14:07:27 UTC 1999


Hi again!

Another error in producing QString items of a QListBox the
" are omited in producing the entries so a compile-error happens
with the generated code!

Here is a small diff -u to fix this bug :)

Thanks for your program!

Ciao Jürgen

P.S.: I also append the same diff as file as there may be a tabs
      problem ;)

-------------------------- begin diff ----------------------------------
--- kdlgedit.cpp.orig   Tue Jul 27 22:54:17 1999
+++ kdlgedit.cpp        Tue Aug 10 10:46:11 1999
@@ -840,6 +840,8 @@
            QString s = getLineOutOfString(src,i,"\\n");
            while (!s.isNull())
                {
+                   s += "\"";
+                   s = "\"" + s;
                    props->dumpPropCall(stream, "insertItem", s);
                    i++;
                    s = getLineOutOfString(src,i,"\\n");
@@ -891,6 +893,8 @@
            QString s = getLineOutOfString(src,i,"\\n");
            while (!s.isNull())
                {
+                   s += "\"";
+                   s = "\"" + s;
                    props->dumpPropCall(stream, "insertItem", s);
                    i++;
                    s = getLineOutOfString(src,i,"\\n");
-------------------------- end diff   ----------------------------------

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna                      E-Mail: jug at sad.it
Gerbergasse 60                        Tel:    +39-0471-450260
I-39100 Bozen                         Fax:    +39-0471-970042
ITALY                                 Web:    http://www.sad.it/~jug

Removing the straw that broke the camel's back does not necessarily
allow the camel to walk again.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
-------------- next part --------------
--- kdlgedit.cpp.orig	Tue Jul 27 22:54:17 1999
+++ kdlgedit.cpp	Tue Aug 10 10:46:11 1999
@@ -840,6 +840,8 @@
 	    QString s = getLineOutOfString(src,i,"\\n");
 	    while (!s.isNull())
 		{
+		    s += "\"";
+		    s = "\"" + s;
 		    props->dumpPropCall(stream, "insertItem", s);
 		    i++;
 		    s = getLineOutOfString(src,i,"\\n");
@@ -891,6 +893,8 @@
 	    QString s = getLineOutOfString(src,i,"\\n");
 	    while (!s.isNull())
 		{
+		    s += "\"";
+		    s = "\"" + s;
 		    props->dumpPropCall(stream, "insertItem", s);
 		    i++;
 		    s = getLineOutOfString(src,i,"\\n");


More information about the KDevelop-devel mailing list