Aekold Helbrass skrev:
> I noticed that some QtJambi classes, for example QFont, overrides
> equals method but does not overrides hashCode method. First I thoughs
>   

Since Qt Jambi 4.5.2 all classes that implement equals() also implement 
hashCode().

In the cases where a hash code function for the class is not available 
in Qt/C++, the hashCode() function in Java will simply return 0 for all 
objects, to honor the contract between equals() and hashCode(). This can 
be true for classes that are not usually used as hash keys.


> and test apps I see that it works just fine. When I am pressing
> Ctrl+Click to enter into hashCode method - it shows me
> operator_equal() method instead. When I am searching for inherited
>   

I don't know which IDE you are using, but the fact that Ctrl+click on a 
hashCode() method (which I assume is supposed to open the definition of 
the hashCode() method) actually opens the definition of a completely 
different method seems like a bug in the tool to me.

-- Eskil
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to