[PyKDE] SIP gives syntax error when confronted with enum

Gary Coulbourne GCoulbourne at Immunicon.com
Wed Jul 6 19:48:14 BST 2005


Howdy!

I have the following construct in a sip file...

---------------------------------------------------------------------

public:
        enum SortType   { NameIgnoreCase        = QDir::Name |
QDir::IgnoreCase,
                          ReverseIgnoreCase     = QDir::Reversed |
QDir::IgnoreCase,
                          UnsortedIgnoreCase    = QDir::Unsorted |
QDir::IgnoreCase,
                          SizeIgnoreCase        = QDir::Size |
QDir::IgnoreCase,
                          TimeIgnoreCase        = QDir::Time |
QDir::IgnoreCase,
                          NameCaseSense         = QDir::Name,
                          ReverseCaseSense      = QDir::Reversed,
                          UnsortedCaseSense     = QDir::Unsorted,
                          SizeCaseSense         = QDir::Size,
                          TimeCaseSense         = QDir::Time };	

-----------------------------------------------------------------------

C++ likes it just fine, but SIP chokes on the very first line of the
enum.  Is there a problem with using enums containing values which are
derived from other enums?

Thanks!

Peace,
Gary

This e-mail message is intended only for the personal use of the recipient(s) named above. This message should be considered a confidential communication, and as such is not subject to disclosure to anyone who is not an intended recipient.  If you are not an intended recipient, you may not legally review, copy or distribute this message. If you have received this communication in error, please notify the sender(s) immediately by e-mail and delete the original message from your computer system.






More information about the PyQt mailing list