Re: Class Variables - no attrAutoCompleteAfter patch

Andras Mantia <[email protected]> Thu, 15 Feb 2007 17:06:24 +0200
Newsgroups gmane.comp.kde.devel.quanta
Message-ID <[email protected]>
On Thursday 15 February 2007, Andrew Lowe wrote:
> You may want to autocomplete function arguments as normal variables
> ie. when you type '$', but you do not want them as class arguments
> ie. after the '->' so I would think we just need to remove the
> className?

That should already work. Actually that non-member autocompletion is 
done in a different place, in the "group" autocompletion. Normal 
variables are added to the "variable" group. The userTagsList is only 
used for members. It is kind'a hack, but that is...

> >In the completion code, I don't understand something. You set
> >
> >completion.type = type[tagNameList[i]];
> >
> >But this will be wrong for XML, as in case of XML, type is
> > unitialized. Shouldn't this be moved inside the
> >+    if(completionDTD->family==Script)
> >?
> >
> >  
>
> Yes, so it should - which incidently is what I moved from inside the
> if block, when I said I had found a mistake :-)

I looked at your second patch and here there is:
-    completions->append( completion );
+    /* Author Andrew Lowe - [email protected]
+     * Here we actually append the completion type
+     */
+    completion.type = type[tagNameList[i]];
+    if(completionDTD->family==Script)

So I don't understand why you think its a mistake to have that statement 
inside the if block.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org

_______________________________________________
quanta-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/quanta-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBF1Hb2TQdfac6L/08RAp5DAJ9WLZTTpxXqsasvbTd8F0oj4EIrbwCdFH/E
yX6LIjtC+rfmIBWcWvVezAQ=
=Rwoo
-----END PGP SIGNATURE-----