lac
Senior Member
30 Posts |
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.
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|