Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Qt flags enum recognition
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

lac
Senior Member

30 Posts

Posted - Jun 19 2014 :  03:53:07 AM  Show Profile  Reply with Quote
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
18939 Posts

Posted - Jun 26 2014 :  8:57:19 PM  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000