[PyKDE] SIP gives syntax error when confronted with enum
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Jul 6 22:24:15 BST 2005
On Wednesday 06 July 2005 7:48 pm, Gary Coulbourne wrote:
> 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?
Don't specify the values at all - just the names.
Phil
More information about the PyQt
mailing list