T O P I C R E V I E W |
lac |
Posted - Jun 19 2014 : 03:53:07 AM Qt has many enums that are declared like this:
enum SomeFlag { Flag1 = 0x01, Flag2 = 0x02, //... }; Q_DECLARE_FLAGS(SomeFlags, SomeFlag);
Q_DECLARE_FLAGS declares a wrapper type SomeFlags of type QFlags<SomeFlag>.
I know it's a very special case, but it would be really nice if VAX would recognize this pattern and provide auto-completion for enum values in places that accept a QFlags<Enum>. It already has a constructor which accepts the actual enum.
|
1 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jun 26 2014 : 8:57:19 PM Which version of Qt are you using, and which classes, or code, are you seeing this with? Qt is a large library, so it would be useful to know where to look. |
|
|